Class ImageUrlGeneratorExtensions
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class ImageUrlGeneratorExtensions
Methods
View SourceIsSupportedImageFormat(IImageUrlGenerator, String)
Gets a value indicating whether the file extension corresponds to a supported image.
Declaration
public static bool IsSupportedImageFormat(this IImageUrlGenerator imageUrlGenerator, string extension)
Parameters
Type | Name | Description |
---|---|---|
IImageUrlGenerator | imageUrlGenerator | The image URL generator implementation that provides detail on which image extensions are supported. |
System.String | extension | The file extension. |
Returns
Type | Description |
---|---|
System.Boolean | A value indicating whether the file extension corresponds to an image. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | imageUrlGenerator |