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
source
IContentItemAssetSourceSource of the asset binary.
metadata
ContentItemAssetMetadataMetadata for the asset.
Exceptions
- ArgumentNullException
Thrown when
source
ormetadata
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
IContentItemAssetSourceSource of the asset binary.
name
stringName of the asset.
extension
stringExtension of the asset, including the leading dot ('.') character.
size
longSize of the asset in bytes.
lastModified
DateTimeDate of last modification of the asset.
Exceptions
- ArgumentNullException
Thrown when
source
is null.
Properties
Source
Source of the asset binary.
public IContentItemAssetSource Source { get; }