Interface IContentItemAssetSource
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Represents a source of a content item asset.
public interface IContentItemAssetSource
- Extension Methods
Remarks
Asset metadata with source can be supplied to create or update operations of IContentItemManager via ContentItemData.
Properties
HasData
Indicates whether the source has content item asset data.
bool HasData { get; }
Property Value
- bool
Remarks
Use this property to conditionally source a new asset binary (e.g. only if a new asset was provided using an uploader).
Methods
Write(string, CancellationToken)
Writes the asset binary to targetAssetFilePath
.
Task Write(string targetAssetFilePath, CancellationToken cancellationToken)
Parameters
targetAssetFilePath
stringTarget file path where the asset binary is to be written.
cancellationToken
CancellationTokenThe cancellation instruction.
Returns
- Task
Returns a task representing the asynchronous operation.
Remarks
The system tests the HasData flag before attempting to write the asset file.