ISchemaManagerImportAssetSchema Method
|
Imports an
asset schema with a string serialization of the previous-generation schema XML file.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIAssetSchema ImportAssetSchema(
XDocument schemaContent,
bool overwrite = false,
bool skipDraftMode = false
)
Function ImportAssetSchema (
schemaContent As XDocument,
Optional overwrite As Boolean = false,
Optional skipDraftMode As Boolean = false
) As IAssetSchema
IAssetSchema^ ImportAssetSchema(
XDocument^ schemaContent,
bool overwrite = false,
bool skipDraftMode = false
)
abstract ImportAssetSchema :
schemaContent : XDocument *
?overwrite : bool *
?skipDraftMode : bool
(* Defaults:
let _overwrite = defaultArg overwrite false
let _skipDraftMode = defaultArg skipDraftMode false
*)
-> IAssetSchema Parameters
- schemaContent XDocument
- XML content of an asset schema file.
- overwrite Boolean (Optional)
- Overwrite existing schema if found
- skipDraftMode Boolean (Optional)
- Whether or not to put the schema in draft mode.
Return Value
IAssetSchemaImported content.
Exceptions| Exception | Condition |
|---|
| ArgumentException | When the string is invalid XML or invalid schema XML. |
Remarks
The content must be valid schema XML.
See Also