Click or drag to resize

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


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.6.492
Syntax
IAsset CreateAsset(
	IAssetFolder parentFolder,
	IAssetSchema assetSchema,
	string assetName,
	bool overwriteSameName,
	string externalUrl,
	bool skipTechnicalMetadataExtraction = false
)

Parameters

parentFolder  IAssetFolder
The parent Asset Folder to create the new Asset under
assetSchema  IAssetSchema
The Asset Schema to have the new Asset based on.
assetName  String
Name of the new Asset.
overwriteSameName  Boolean
Whether to overwrite an already existant Asset with the same name upon creation of the new asset.
externalUrl  String
URL of the file to be associated with the Asset.
skipTechnicalMetadataExtraction  Boolean  (Optional)
Whether to skip extraction of technical metadata

Return Value

IAsset
Newly created Asset.
See Also