Click or drag to resize
DocumentAttachmentExtensionsGetVariant Method
Returns DocumentAttachment that represents variant of the given attachment. The variant is specified by definitionIdentifier parameter.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static DocumentAttachment GetVariant(
	this DocumentAttachment attachment,
	string definitionIdentifier
)

Parameters

attachment
Type: CMS.DocumentEngineDocumentAttachment
Document attachment.
definitionIdentifier
Type: SystemString
Definition identifier.

Return Value

Type: DocumentAttachment

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DocumentAttachment. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when either of the parameters are null.
ArgumentExceptionThrown when definitionIdentifier is empty.
See Also