Click or drag to resize
ImageVariantDefinitionExtensionsIsApplicable Method
Indicates whether the definition is applicable for the given image metadata.

Namespace: CMS.ResponsiveImages
Assembly: CMS.ResponsiveImages (in CMS.ResponsiveImages.dll) Version: 13.0.131
Syntax
C#
public static bool IsApplicable(
	this IImageVariantDefinition imageVariantDefinition,
	ImageMetadata metadata,
	IVariantContext context
)

Parameters

imageVariantDefinition
Type: CMS.ResponsiveImagesIImageVariantDefinition
Image variant definition.
metadata
Type: CMS.ResponsiveImagesImageMetadata
Image metadata for which the condition should be evaluated.
context
Type: CMS.ResponsiveImagesIVariantContext
Context in which the variant is generated.

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IImageVariantDefinition. 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).
See Also