Export (0) Print
Expand All

XmlSchemaSet::Reprocess Method

Reprocesses an XML Schema definition language (XSD) schema that already exists in the XmlSchemaSet.

Namespace:  System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public:
XmlSchema^ Reprocess(
	XmlSchema^ schema
)

Parameters

schema
Type: System.Xml.Schema::XmlSchema

The schema to reprocess.

Return Value

Type: System.Xml.Schema::XmlSchema
An XmlSchema object if the schema is a valid schema. If the schema is not valid and a ValidationEventHandler is specified, nullptr is returned and the appropriate validation event is raised. Otherwise, an XmlSchemaException is thrown.

ExceptionCondition
XmlSchemaException

The schema is not valid.

ArgumentNullException

The XmlSchema object passed as a parameter is nullptr.

ArgumentException

The XmlSchema object passed as a parameter does not already exist in the XmlSchemaSet.

Reprocessing a schema performs all the preprocessing steps performed on a schema when the Add method is called. If the call to Reprocess is successful, the IsCompiled property is set to false.

The Reprocess method should be used after a schema in the XmlSchemaSet has been modified, after the XmlSchemaSet has performed compilation.

NoteNote

You need to call the Reprocess method if you have changed a schema (or one of its includes/imports) after adding it to the XmlSchemaSet. The Reprocess method will check the schema for structural validity according to the rules of W3C XML Schema. However, it will not perform a full validation check. It will also resolve references to internal and external schema components. Any imported or included schemas that are successfully retrieved are also added to the XmlSchemaSet. Imported schemas are added as separate XmlSchema objects while included schemas are made part of the including XmlSchema. If the call to reprocess is successful, the IsCompiled property is set to false.

The following example illustrates reprocessing a schema added to the XmlSchemaSet. After the XmlSchemaSet is compiled using the Compile method, and the schema added to the XmlSchemaSet is modified, the IsCompiled property will be set to true, even though a schema in the XmlSchemaSet has been modified. Calling the Reprocess method performs all the preprocessing performed by the Add method and sets the IsCompiled property to false.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft