Click or drag to resize
AttachmentInfoProviderIsUniqueAttachmentName Method
Finds out whether given attachment name is unique

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public static bool IsUniqueAttachmentName(
	int documentId,
	string fileName,
	string extension,
	int currentAttachmentId,
	bool selectFromVersionHistory
)

Parameters

documentId
Type: SystemInt32
ID of the document
fileName
Type: SystemString
Name of file
extension
Type: SystemString
Extension of file
currentAttachmentId
Type: SystemInt32
Current attachment ID
selectFromVersionHistory
Type: SystemBoolean
Indicates if VersionHistory table should be used

Return Value

Type: Boolean
True if attachment name is unique
See Also