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

Dim instance As XmlSchemaSet Dim schema As XmlSchema Dim returnValue As XmlSchema returnValue = instance.Remove(schema)
戻り値
XmlSchemaSet から削除された XmlSchema オブジェクト。または、XmlSchemaSet 内にスキーマが見つからなかった場合は null 参照 (Visual Basic では Nothing)。



1 つの XmlSchemaSet に複数のスキーマを追加し、Remove メソッドを使用してスキーマの 1 つを削除する例を次に示します。
Dim schemaSet As XmlSchemaSet = New XmlSchemaSet() schemaSet.Add("http://www.contoso.com/retail", "http://www.contoso.com/retail.xsd") schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd") schemaSet.Add("http://www.contoso.com/music", "http://www.contoso.com/music.xsd") Dim schema As XmlSchema For Each schema In schemaSet.Schemas() If schema.TargetNamespace = "http://www.contoso.com/music" Then <b>schemaSet.Remove(schema)</b> End If Next
XmlSchemaSet schemaSet = new XmlSchemaSet(); schemaSet.Add("http://www.contoso.com/retail", "http://www.contoso.com/retail.xsd"); schemaSet.Add("http://www.contoso.com/books", "http://www.contoso.com/books.xsd"); schemaSet.Add("http://www.contoso.com/music", "http://www.contoso.com/music.xsd"); foreach (XmlSchema schema in schemaSet.Schemas()) { if (schema.TargetNamespace == "http://www.contoso.com/music") { <b>schemaSet.Remove(schema);</b> } }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からXmlSchemaSet.Remove メソッドを検索する場合は、下記のリンクをクリックしてください。

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