IAssetManagerCreateAsset(IAssetFolder, IAssetSchema, String, Boolean, Stream, Boolean) Method
|
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIAsset CreateAsset(
IAssetFolder parentFolder,
IAssetSchema assetSchema,
string assetName,
bool overwriteSameName,
Stream assetContent,
bool skipTechnicalMetadataExtraction = false
)
Function CreateAsset (
parentFolder As IAssetFolder,
assetSchema As IAssetSchema,
assetName As String,
overwriteSameName As Boolean,
assetContent As Stream,
Optional skipTechnicalMetadataExtraction As Boolean = false
) As IAsset
IAsset^ CreateAsset(
IAssetFolder^ parentFolder,
IAssetSchema^ assetSchema,
String^ assetName,
bool overwriteSameName,
Stream^ assetContent,
bool skipTechnicalMetadataExtraction = false
)
abstract CreateAsset :
parentFolder : IAssetFolder *
assetSchema : IAssetSchema *
assetName : string *
overwriteSameName : bool *
assetContent : Stream *
?skipTechnicalMetadataExtraction : bool
(* Defaults:
let _skipTechnicalMetadataExtraction = defaultArg skipTechnicalMetadataExtraction false
*)
-> IAsset Parameters
- parentFolder IAssetFolder
- The parent Asset to create the new Page 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.
- assetContent Stream
- File stream of the physical file to be associated with the new Asset.
- skipTechnicalMetadataExtraction Boolean (Optional)
- Whether to skip extraction of technical metadata
Return Value
IAssetNewly created
Asset.
See Also