Class MediaData
Base class for content based media implementations.
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[AvailableContentTypes(Availability = Availability.None)]
[AdministrationSettings(GroupName = "mediatypes", Visible = true, Order = 30, PropertyDefinitionFields = PropertyDefinitionFields.Type | PropertyDefinitionFields.Name | PropertyDefinitionFields.PropertySettingsControl | PropertyDefinitionFields.DefaultValue | PropertyDefinitionFields.Required | PropertyDefinitionFields.Searchable | PropertyDefinitionFields.DisplayEditUI | PropertyDefinitionFields.EditCaption | PropertyDefinitionFields.HelpText | PropertyDefinitionFields.Tab | PropertyDefinitionFields.FieldOrder)]
public class MediaData : ContentBase, IInitializableContent, IChangeTrackable, IExportable, IVersionable, IReadOnly, IModifiedTrackable, IContentSecurable, ISecurable, ICategorizable, IContentMedia, IContent, IContentData, IBinaryStorable, IRoutable, ILocale
Constructors
MediaData()
Declaration
public MediaData()
Fields
ChangedByID
The query parameter that is added to BinaryData identifier to mark which version that changed the instance.
Declaration
public const string ChangedByID = "changedByID"
Field Value
Type | Description |
---|---|
System.String |
Properties
BinaryData
The binary data associated with this file
Declaration
public virtual Blob BinaryData { get; set; }
Property Value
Type | Description |
---|---|
Blob |
Remarks
Setting this value to null
will de-reference the file from the blob, meaning the container will not be deleted when the file is deleted.
BinaryDataContainer
The container used to store binaries for this content item
Declaration
public virtual Uri BinaryDataContainer { get; }
Property Value
Type | Description |
---|---|
System.Uri |
IsModified
Gets a value indicating whether this instance has been modified after loading.
Declaration
protected override bool IsModified { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
Language
Gets or sets the language for this media instance.
Declaration
public CultureInfo Language { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | The language. |
MimeType
Gets the MIME type of this media content.
Declaration
public virtual string MimeType { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
If BinaryData is null
then null
is returned.
RouteSegment
Gets or sets the Route segment.
Declaration
public string RouteSegment { get; set; }
Property Value
Type | Description |
---|---|
System.String | The Route segment. |
Thumbnail
Gets or sets the generated thumbnail for this media.
Declaration
public virtual Blob Thumbnail { get; set; }
Property Value
Type | Description |
---|---|
Blob |
Methods
ResetModified()
Resets the modified flag on all the properties in the Property collection.
Declaration
protected override void ResetModified()