Click or drag to resize

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


Creates a new Asset with specific Asset Schema with an external URL rather than an uploaded file.

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

Parameters

parentFolder
Type: Ingeniux.CMSIAssetFolder
The parent Asset Folder to create the new Asset 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.
externalUrl
Type: SystemString
URL of the file to be associated with the Asset.
skipTechnicalMetadataExtraction (Optional)
Type: SystemBoolean
Whether to skip extraction of technical metadata

Return Value

Type: IAsset
Newly created Asset.
See Also