ISchemaManagerImportSchema Method (String, 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(
string schemaContent,
bool overwrite = false,
bool skipDraftMode = true
)
Function ImportSchema (
schemaContent As String,
Optional overwrite As Boolean = false,
Optional skipDraftMode As Boolean = true
) As ISchema
ISchema^ ImportSchema(
String^ schemaContent,
bool overwrite = false,
bool skipDraftMode = true
)
abstract ImportSchema :
schemaContent : string *
?overwrite : bool *
?skipDraftMode : bool
(* Defaults:
let _overwrite = defaultArg overwrite false
let _skipDraftMode = defaultArg skipDraftMode true
*)
-> ISchema
Parameters
- schemaContent
- Type: SystemString
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.String,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 string must be parsed so that it is valid schema XML.
See Also