Click or drag to resize
AttachmentInfoProvider.IsUniqueAttachmentNameInternal 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#
protected virtual bool IsUniqueAttachmentNameInternal(
	int documentId,
	string fileName,
	string extension,
	int currentAttachmentId,
	bool selectFromVersionHistory
)

Parameters

documentId
Type: System.Int32
ID of the document
fileName
Type: System.String
Name of file
extension
Type: System.String
Extension of file
currentAttachmentId
Type: System.Int32
Current attachment ID
selectFromVersionHistory
Type: System.Boolean
Indicates if VersionHistory table should be used

Return Value

Type: Boolean
True if attachment name is unique
See Also