ISchemaManagerImportSchema Method (XDocument, Boolean, Boolean)
|
Imports a
schema with a string serialization of the previous-generation schema XML file.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax ISchema ImportSchema(
XDocument schemaContent,
bool overwrite = false,
bool skipDraftMode = false
)
Function ImportSchema (
schemaContent As XDocument,
Optional overwrite As Boolean = false,
Optional skipDraftMode As Boolean = false
) As ISchema
ISchema^ ImportSchema(
XDocument^ schemaContent,
bool overwrite = false,
bool skipDraftMode = false
)
abstract ImportSchema :
schemaContent : XDocument *
?overwrite : bool *
?skipDraftMode : bool
(* Defaults:
let _overwrite = defaultArg overwrite false
let _skipDraftMode = defaultArg skipDraftMode false
*)
-> ISchema
Parameters
- schemaContent
- Type: System.Xml.LinqXDocument
XML content of a schema file. - overwrite (Optional)
- Type: SystemBoolean
Overwrite existing schema if found - skipDraftMode (Optional)
- Type: SystemBoolean
[Missing <param name="skipDraftMode"/> documentation for "M:Ingeniux.CMS.ISchemaManager.ImportSchema(System.Xml.Linq.XDocument,System.Boolean,System.Boolean)"]
Return Value
Type:
ISchemaImported 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