Click or drag to resize

IAssetManagerCreateAsset Method (IAssetFolder, IAssetSchema, String, Boolean, Stream, Boolean)


Creates a new Asset with specific Asset Schema.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
IAsset CreateAsset(
	IAssetFolder parentFolder,
	IAssetSchema assetSchema,
	string assetName,
	bool overwriteSameName,
	Stream assetContent,
	bool skipTechnicalMetadataExtraction = false
)

Parameters

parentFolder
Type: Ingeniux.CMSIAssetFolder
The parent Asset to create the new Page under
assetSchema
Type: Ingeniux.CMSIAssetSchema
The Asset Schema to have the new Asset based on.
assetName
Type: SystemString
Name of the new Asset.
overwriteSameName
Type: SystemBoolean
Whether to overwrite an already existant Asset with the same name upon creation of the new asset.
assetContent
Type: System.IOStream
File stream of the physical file to be associated with the new Asset.
skipTechnicalMetadataExtraction (Optional)
Type: SystemBoolean
Whether to skip extraction of technical metadata

Return Value

Type: IAsset
Newly created Asset.
See Also