Click or drag to resize
TreeNodeGetFieldAttachment Method
Retrieves the attachment associated with the specified field of type File.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
protected Attachment GetFieldAttachment(
	string fieldName
)

Parameters

fieldName
Type: SystemString
The field name.

Return Value

Type: Attachment
The attachment associated with the specified field, if found; otherwise, null.
Exceptions
ExceptionCondition
ArgumentNullExceptionfieldName is null.
Remarks
This method returns null if the specified field does not exist or there is no associated attachment.
See Also