Search Results for

    Show / Hide Table of Contents
    View Source

    Class Media

    Represents a Media object

    Inheritance
    System.Object
    BeingDirtyBase
    EntityBase
    TreeEntityBase
    ContentBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class Media : ContentBase, IMedia, IContentBase, IUmbracoEntity, ITreeEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    Media(String, Int32, IMediaType)

    Constructor for creating a Media object

    Declaration
    public Media(string name, int parentId, IMediaType mediaType)
    Parameters
    Type Name Description
    System.String name

    name of the Media object

    System.Int32 parentId

    Id of the Parent IMedia

    IMediaType mediaType

    MediaType for the current Media object

    View Source

    Media(String, Int32, IMediaType, IPropertyCollection)

    Constructor for creating a Media object

    Declaration
    public Media(string name, int parentId, IMediaType mediaType, IPropertyCollection properties)
    Parameters
    Type Name Description
    System.String name

    Name of the Media object

    System.Int32 parentId

    Id of the Parent IMedia

    IMediaType mediaType

    MediaType for the current Media object

    IPropertyCollection properties

    Collection of properties

    View Source

    Media(String, IMedia, IMediaType)

    Constructor for creating a Media object

    Declaration
    public Media(string name, IMedia parent, IMediaType mediaType)
    Parameters
    Type Name Description
    System.String name

    name of the Media object

    IMedia parent

    Parent IMedia object

    IMediaType mediaType

    MediaType for the current Media object

    View Source

    Media(String, IMedia, IMediaType, IPropertyCollection)

    Constructor for creating a Media object

    Declaration
    public Media(string name, IMedia parent, IMediaType mediaType, IPropertyCollection properties)
    Parameters
    Type Name Description
    System.String name

    name of the Media object

    IMedia parent

    Parent IMedia object

    IMediaType mediaType

    MediaType for the current Media object

    IPropertyCollection properties

    Collection of properties

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Media(String, Int32, IMediaType)
      • Media(String, Int32, IMediaType, IPropertyCollection)
      • Media(String, IMedia, IMediaType)
      • Media(String, IMedia, IMediaType, IPropertyCollection)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX