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.6.308
Syntax IAsset CreateAsset(
IAssetFolder parentFolder,
IAssetSchema assetSchema,
string assetName,
bool overwriteSameName,
string externalUrl,
bool skipTechnicalMetadataExtraction = false
)
Function CreateAsset (
parentFolder As IAssetFolder,
assetSchema As IAssetSchema,
assetName As String,
overwriteSameName As Boolean,
externalUrl As String,
Optional skipTechnicalMetadataExtraction As Boolean = false
) As IAsset
IAsset^ CreateAsset(
IAssetFolder^ parentFolder,
IAssetSchema^ assetSchema,
String^ assetName,
bool overwriteSameName,
String^ externalUrl,
bool skipTechnicalMetadataExtraction = false
)
abstract CreateAsset :
parentFolder : IAssetFolder *
assetSchema : IAssetSchema *
assetName : string *
overwriteSameName : bool *
externalUrl : string *
?skipTechnicalMetadataExtraction : bool
(* Defaults:
let _skipTechnicalMetadataExtraction = defaultArg skipTechnicalMetadataExtraction false
*)
-> IAsset
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:
IAssetNewly created
Asset.
See Also