Click or drag to resize

ISchemaManagerImportSchema(XDocument, Boolean, Boolean) Method


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.6.492
Syntax
ISchema ImportSchema(
	XDocument schemaContent,
	bool overwrite = false,
	bool skipDraftMode = false
)

Parameters

schemaContent  XDocument
XML content of a 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

ISchema
Imported content.
Exceptions
ExceptionCondition
ArgumentExceptionWhen the string is invalid XML or invalid schema XML.
Remarks

The content must be valid schema XML.

See Also