Click or drag to resize
DocumentAttachmentExtensionsGenerateMissingVariants Method
Generates attachment image variants which were not yet generated.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public static void GenerateMissingVariants(
	this DocumentAttachment attachment,
	IVariantContext context
)

Parameters

attachment
Type: CMS.DocumentEngineDocumentAttachment
Document attachment.
context
Type: CMS.ResponsiveImagesIVariantContext
Variant processing context.

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 attachment is null.
See Also