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
-
objectContentItemAssetMetadataWithSource
- 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
sourceIContentItemAssetSourceSource of the asset binary.
metadataContentItemAssetMetadataMetadata for the asset.
Exceptions
- ArgumentNullException
Thrown when
sourceormetadatais 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
sourceIContentItemAssetSourceSource of the asset binary.
namestringName of the asset.
extensionstringExtension of the asset, including the leading dot ('.') character.
sizelongSize of the asset in bytes.
lastModifiedDateTimeDate of last modification of the asset.
Exceptions
- ArgumentNullException
Thrown when
sourceis null.
Properties
Source
Source of the asset binary.
public IContentItemAssetSource Source { get; }