Class Constants.Conventions.Media
Constants for Umbraco Media property aliases.
Inheritance
System.Object
Namespace: Umbraco.Core
Assembly: Umbraco.Core.dll
Syntax
public static class Media
Fields
View SourceBytes
Property alias for the Media's file size (in bytes).
Declaration
public const string Bytes = "umbracoBytes"
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 = 200
Field Value
Type | Description |
---|---|
System.Int32 |
Extension
Property alias for the Media's file extension.
Declaration
public const string Extension = "umbracoExtension"
Field Value
Type | Description |
---|---|
System.String |
File
Property alias for the Media's file name.
Declaration
public const string File = "umbracoFile"
Field Value
Type | Description |
---|---|
System.String |
Height
Property alias for the Media's height.
Declaration
public const string Height = "umbracoHeight"
Field Value
Type | Description |
---|---|
System.String |
Width
Property alias for the Media's width.
Declaration
public const string Width = "umbracoWidth"
Field Value
Type | Description |
---|---|
System.String |