XmlSchemas.Contains 方法

定義

判斷指定項目是否為集合的成員。

多載

Contains(String)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

傳回數值,指出集合是否包含屬於指定命名空間的 XmlSchema 物件。

Contains(XmlSchema)

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

判斷 XmlSchemas 是否包含特定結構描述。

Contains(String)

傳回數值,指出集合是否包含屬於指定命名空間的 XmlSchema 物件。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

targetNamespace
String

要檢查之項目的命名空間。

傳回

Boolean

如果找到項目,則為 true,否則為 false

適用於

Contains(XmlSchema)

判斷 XmlSchemas 是否包含特定結構描述。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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 物件。

傳回

Boolean

如果集合包含指定項目,則為 true,否則為 false

適用於