ISchemaManagerCreateAssetSchema Method |
Namespace: Ingeniux.CMS
IAssetSchema CreateAssetSchema( string name, string friendlyName, int icon, AssetType type, string thumbnailPath = "" )
Exception | Condition |
---|---|
ArgumentNullException | When the "name" parameter is null, empty, or contains whitespace. |
ArgumentException | When the "name" parameter is not a valid XML element name; there are already schemas with same root name or friendly name; or the view name or style sheet name is invalid. |
The schema returned is not yet saved to the content store.
The "name" paramter provided cannot be null, empty, or contain whitespace, and it must be a valid XML element name.
The friendly names and root element names are unique to the schema's collection. If any schemas with a matching friendly name or root element name already exist, an error is thrown.
The newly created asset schema will be in draft mode. It cannot be used to create pages until it is saved with a new version.
If the icon ID provided doesn't match any icon images, it defaults to a blank page icon.
The newly created asset schema doesn't have any fields yet. Fields must be added to the returned object before saving (for more information, see UserWriteSession disposal).
The purpose of this parameter is for visual presentation only in the CMS schema designer user interface.