Search Results for

    Show / Hide Table of Contents
    View Source

    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

    Fields

    View Source

    Bytes

    Property alias for the Media's file size (in bytes).

    Declaration
    public const string Bytes = "umbracoBytes"
    Field Value
    Type Description
    System.String
    View Source

    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
    View Source

    Extension

    Property alias for the Media's file extension.

    Declaration
    public const string Extension = "umbracoExtension"
    Field Value
    Type Description
    System.String
    View Source

    File

    Property alias for the Media's file name.

    Declaration
    public const string File = "umbracoFile"
    Field Value
    Type Description
    System.String
    View Source

    Height

    Property alias for the Media's height.

    Declaration
    public const string Height = "umbracoHeight"
    Field Value
    Type Description
    System.String
    View Source

    Width

    Property alias for the Media's width.

    Declaration
    public const string Width = "umbracoWidth"
    Field Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • Bytes
      • DefaultSize
      • Extension
      • File
      • Height
      • Width
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX