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 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

   

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



XmlSchemaSet.Reprocess メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS