XmlSchemaSet.Reprocess メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > XmlSchemaSet.Reprocess メソッドの意味・解説 

XmlSchemaSet.Reprocess メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

XmlSchemaSet 内に既に存在している XML スキーマ定義言語 (XSD) スキーマを再処理します。

名前空間: System.Xml.Schema
アセンブリ: System.Xml (system.xml.dll 内)
構文構文

例外例外
例外の種類条件

XmlSchemaException

スキーマが有効ではありません。

ArgumentNullException

パラメータとして渡される XmlSchema オブジェクトは null 参照 (Visual Basic では Nothing) です。

ArgumentException

パラメータとして渡された XmlSchema オブジェクトは、XmlSchemaSet に存在していません。

解説解説
使用例使用例

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);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
XmlSchemaSet クラス
XmlSchemaSet メンバ
System.Xml.Schema 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

XmlSchemaSet.Reprocess メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



XmlSchemaSet.Reprocess メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS