Click or drag to resize
AttachmentHistoryExtensionsGenerateAllVariants Method
Generates all image variants for given attachment overwriting existing variants.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static void GenerateAllVariants(
	this AttachmentHistoryInfo attachment,
	IVariantContext context
)

Parameters

attachment
Type: CMS.DocumentEngineAttachmentHistoryInfo
Attachment info object.
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 AttachmentHistoryInfo. 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.
Remarks
Only applicable variants will be generated. Variant definitions which are no more applicable to the attachment will be deleted.
See Also