Table of Contents

Class ContentItemAssetMetadataWithSource

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Represents metadata of an asset in content item with an associated source of the asset binary.

public class ContentItemAssetMetadataWithSource : ContentItemAssetMetadata
Inheritance
object
ContentItemAssetMetadataWithSource
Inherited Members
Extension Methods

Constructors

ContentItemAssetMetadataWithSource(IContentItemAssetSource, ContentItemAssetMetadata)

Initializes a new instance of the ContentItemAssetMetadataWithSource class using the metadata provided.

public ContentItemAssetMetadataWithSource(IContentItemAssetSource source, ContentItemAssetMetadata metadata)

Parameters

source IContentItemAssetSource

Source of the asset binary.

metadata ContentItemAssetMetadata

Metadata for the asset.

Exceptions

ArgumentNullException

Thrown when source or metadata is null.

ContentItemAssetMetadataWithSource(IContentItemAssetSource, string, string, long, DateTime)

Initializes a new instance of the ContentItemAssetMetadataWithSource class while generating a new unique Identifier for the asset.

public ContentItemAssetMetadataWithSource(IContentItemAssetSource source, string name, string extension, long size, DateTime lastModified)

Parameters

source IContentItemAssetSource

Source of the asset binary.

name string

Name of the asset.

extension string

Extension of the asset, including the leading dot ('.') character.

size long

Size of the asset in bytes.

lastModified DateTime

Date of last modification of the asset.

Exceptions

ArgumentNullException

Thrown when source is null.

Properties

Source

Source of the asset binary.

public IContentItemAssetSource Source { get; }

Property Value

IContentItemAssetSource