XmlSchemaCollection.Contains 方法

定义

获取一个值,该值指示具有指定命名空间的架构是否在集合中。

重载

名称 说明
Contains(String)

获取一个值,该值指示具有指定命名空间的架构是否在集合中。

Contains(XmlSchema)

获取一个值,该值指示指定的targetNamespace值是否XmlSchema在集合中。

注解

Important

XmlSchemaCollection 类在 .NET Framework 版本 2.0 中已过时,已被类 XmlSchemaSet 替换。

Contains(String)

Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs

获取一个值,该值指示具有指定命名空间的架构是否在集合中。

public:
 bool Contains(System::String ^ ns);
public bool Contains(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)

Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs
Source:
XmlSchemaCollection.cs

获取一个值,该值指示指定的targetNamespace值是否XmlSchema在集合中。

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 对象。

返回

如果集合 中具有相同架构,则为

注解

Important

XmlSchemaCollection 类在 .NET Framework 版本 2.0 中已过时,已被类 XmlSchemaSet 替换。

适用于