Class Constants.Conventions.Media
Constants for Umbraco Media property aliases.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core
Assembly: Umbraco.Core.dll
Syntax
public static class Media : object
Fields
View SourceBytes
Property alias for the Media's file size (in bytes).
Declaration
public const string Bytes = null
Field Value
Type | Description |
---|---|
System.String |
DefaultSize
The default height/width of an image file if the size can't be determined from the metadata
Declaration
public const int DefaultSize = null
Field Value
Type | Description |
---|---|
System.Int32 |
Extension
Property alias for the Media's file extension.
Declaration
public const string Extension = null
Field Value
Type | Description |
---|---|
System.String |
File
Property alias for the Media's file name.
Declaration
public const string File = null
Field Value
Type | Description |
---|---|
System.String |
Height
Property alias for the Media's height.
Declaration
public const string Height = null
Field Value
Type | Description |
---|---|
System.String |
Width
Property alias for the Media's width.
Declaration
public const string Width = null
Field Value
Type | Description |
---|---|
System.String |