XmlSchemaCollection.Item プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > XmlSchemaCollection.Item プロパティの意味・解説 

XmlSchemaCollection.Item プロパティ

指定した名前空間 URI関連付けられている XmlSchema取得します

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

解説解説
メモ重要 :

XmlSchemaCollection クラス.NET Framework Version 2.0 では使用されなくなり、XmlSchemaSet クラス置き換えられました。

使用例使用例

スキーマコレクション内に存在するかどうか確認する例を次に示しますコレクション内に存在する場合は、そのスキーマ表示します

If xsc.Contains("urn:bookstore-schema")
 Then
    Dim schema As XmlSchema = xsc("urn:bookstore-schema")
    Dim sw As New StringWriter()
    Dim xmlWriter As New
 XmlTextWriter(sw)
    xmlWriter.Formatting = Formatting.Indented
    xmlWriter.Indentation = 2
    schema.Write(xmlWriter)
    Console.WriteLine(sw.ToString())
End If
if (xsc.Contains("urn:bookstore-schema"))
{
  XmlSchema schema = xsc["urn:bookstore-schema"];
  StringWriter sw = new StringWriter();
  XmlTextWriter xmlWriter = new XmlTextWriter(sw);
  xmlWriter.Formatting = Formatting.Indented;
  xmlWriter.Indentation = 2;
  schema.Write(xmlWriter);
  Console.WriteLine(sw.ToString());
}
if ( xsc->Contains( "urn:bookstore-schema" ) )
{
   XmlSchema^ schema = xsc[ "urn:bookstore-schema" ];
   StringWriter^ sw = gcnew StringWriter;
   XmlTextWriter^ xmlWriter = gcnew XmlTextWriter( sw );
   xmlWriter->Formatting = Formatting::Indented;
   xmlWriter->Indentation = 2;
   schema->Write( xmlWriter );
   Console::WriteLine( sw );
}
if (xSC.Contains("urn:bookstore-schema")) {
    XmlSchema schema = xSC.get_Item("urn:bookstore-schema");
    StringWriter sW = new StringWriter();
    XmlTextWriter xmlWriter = new XmlTextWriter(sW);
    xmlWriter.set_Formatting(Formatting.Indented);
    xmlWriter.set_Indentation(2);
    schema.Write(xmlWriter);
    Console.WriteLine(sW.ToString());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
XmlSchemaCollection クラス
XmlSchemaCollection メンバ
System.Xml.Schema 名前空間



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

辞書ショートカット

すべての辞書の索引

XmlSchemaCollection.Item プロパティのお隣キーワード
検索ランキング

   

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



XmlSchemaCollection.Item プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS