Search Results for

    Show / Hide Table of Contents
    View Source

    Class Constants.Conventions.Media

    Constants for Umbraco Media property aliases.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public static class Constants.Conventions.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
    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
    int
    View Source

    Extension

    Property alias for the Media's file extension.

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

    File

    Property alias for the Media's file name.

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

    Height

    Property alias for the Media's height.

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

    TrashedMediaSuffix

    Suffix added to media files when moved to the recycle bin when recycle bin media protection is enabled.

    Declaration
    public const string TrashedMediaSuffix = ".deleted"
    Field Value
    Type Description
    string
    View Source

    Width

    Property alias for the Media's width.

    Declaration
    public const string Width = "umbracoWidth"
    Field Value
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX