Click or drag to resize

IAssetManagerCreateAssetFolder Method


Creates a new Asset Folder in a specified parent folder.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.5.94
Syntax
IAssetFolder CreateAssetFolder(
	IAssetFolder parentFolder,
	string name,
	bool overwriteSameName
)

Parameters

parentFolder
Type: Ingeniux.CMSIAssetFolder
The parent Asset Folder to create the new folder under.
name
Type: SystemString
Name for the new Asset Folder.
overwriteSameName
Type: SystemBoolean
Whether to overwrite an asset folder with the same name upon creation.

Return Value

Type: IAssetFolder
The newly created Asset Folder.
Remarks

If "parentFolder" parameter value is null the new asset folder will be created under the asset tree root.

If "name" is null or empty an exception will be thrown.

See Also