XmlSchemaSet.Reprocess メソッド
アセンブリ: System.Xml (system.xml.dll 内)

Dim instance As XmlSchemaSet Dim schema As XmlSchema Dim returnValue As XmlSchema returnValue = instance.Reprocess(schema)
戻り値
スキーマが有効なスキーマの場合は XmlSchema オブジェクト。スキーマが無効で ValidationEventHandler が指定されている場合は、null 参照 (Visual Basic では Nothing) が返され、該当する検証イベントが発生します。それ以外の場合は、XmlSchemaException がスローされます。


スキーマを再処理すると、Add メソッドを呼び出したときにスキーマで実行されるすべての前処理手順が実行されます。Reprocess が正常に呼び出されると、IsCompiled プロパティが false に設定されます。
XmlSchemaSet 内のスキーマを変更し、XmlSchemaSet によってコンパイルが実行された後で、Reprocess メソッドを使用する必要があります。

XmlSchemaSet に追加したスキーマを再処理する例を次に示します。Compile メソッドを使用して XmlSchemaSet をコンパイルした後で、XmlSchemaSet に追加されたスキーマを変更すると、XmlSchemaSet 内のスキーマが変更されていても、IsCompiled プロパティは true に設定されます。Reprocess メソッドを呼び出すと、Add メソッドで実行されるすべての処理が実行され、IsCompiled プロパティが false に設定されます。
Dim schemaSet As XmlSchemaSet = New XmlSchemaSet() Dim schema As XmlSchema = schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd") schemaSet.Compile() Dim element As XmlSchemaElement = New XmlSchemaElement() schema.Items.Add(element) element.Name = "book" element.SchemaTypeName = New XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema") schemaSet.Reprocess(schema)
XmlSchemaSet schemaSet = new XmlSchemaSet(); XmlSchema schema = schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd"); schemaSet.Compile(); XmlSchemaElement element = new XmlSchemaElement(); schema.Items.Add(element); element.Name = "book"; element.SchemaTypeName = new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema"); schemaSet.Reprocess(schema);

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- XmlSchemaSet.Reprocess メソッドのページへのリンク