XmlSchemaCollection.Contains メソッド

定義

指定した名前空間を持つスキーマがコレクション内にあるかどうかを示す値を取得します。

オーバーロード

名前 説明
Contains(String)

指定した名前空間を持つスキーマがコレクション内にあるかどうかを示す値を取得します。

Contains(XmlSchema)

指定したXmlSchematargetNamespaceがコレクション内にあるかどうかを示す値を取得します。

注釈

Important

XmlSchemaCollection クラスは .NET Framework バージョン 2.0 では廃止されており、XmlSchemaSet クラスに置き換えられました。

Contains(String)

指定した名前空間を持つスキーマがコレクション内にあるかどうかを示す値を取得します。

public:
 bool Contains(System::String ^ ns);
public bool Contains(string ns);
member this.Contains : string -> bool
Public Function Contains (ns As String) As Boolean

パラメーター

ns
String

スキーマに関連付けられている名前空間 URI。 XML スキーマの場合、これは通常、ターゲット名前空間になります。

返品

true 指定した名前空間を持つスキーマがコレクション内にある場合。それ以外の場合は false

注釈

Important

XmlSchemaCollection クラスは .NET Framework バージョン 2.0 では廃止されており、XmlSchemaSet クラスに置き換えられました。

適用対象

Contains(XmlSchema)

指定したXmlSchematargetNamespaceがコレクション内にあるかどうかを示す値を取得します。

public:
 bool Contains(System::Xml::Schema::XmlSchema ^ schema);
public bool Contains(System.Xml.Schema.XmlSchema schema);
member this.Contains : System.Xml.Schema.XmlSchema -> bool
Public Function Contains (schema As XmlSchema) As Boolean

パラメーター

schema
XmlSchema

XmlSchema オブジェクトです。

返品

true 同じ targetNamespaceを持つスキーマがコレクション内にある場合は false。それ以外の場合は。

注釈

Important

XmlSchemaCollection クラスは .NET Framework バージョン 2.0 では廃止されており、XmlSchemaSet クラスに置き換えられました。

適用対象