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

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static bool IsUniqueAttachmentName(
	TreeNode node,
	string fileName,
	string extension,
	int currentAttachmentId,
	TreeProvider tree
)

Parameters

node
Type: CMS.DocumentEngineTreeNode
Document node
fileName
Type: SystemString
Attachment file name
extension
Type: SystemString
File extension
currentAttachmentId
Type: SystemInt32
Current attachment ID
tree
Type: CMS.DocumentEngineTreeProvider
Tree object

Return Value

Type: Boolean
True if attachment name is unique
See Also