XmlSchemaCollection.Contains 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个值,该值指示具有指定命名空间的架构是否在集合中。
重载
| 名称 | 说明 |
|---|---|
| Contains(String) |
获取一个值,该值指示具有指定命名空间的架构是否在集合中。 |
| Contains(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 替换。