XmlSchemaCollection.Item[String] 属性

定义

获取 XmlSchema 与给定命名空间 URI 关联的值。

public:
 property System::Xml::Schema::XmlSchema ^ default[System::String ^] { System::Xml::Schema::XmlSchema ^ get(System::String ^ ns); };
public System.Xml.Schema.XmlSchema? this[string? ns] { get; }
public System.Xml.Schema.XmlSchema this[string ns] { get; }
member this.Item(string) : System.Xml.Schema.XmlSchema
Default Public ReadOnly Property Item(ns As String) As XmlSchema

参数

ns
String

与要返回的架构关联的命名空间 URI。 这通常是 targetNamespace 架构。

属性值

XmlSchema 命名空间 URI 关联的架构; null 如果没有与给定命名空间关联的已加载架构,或者命名空间与 XDR 架构相关联。

注解

Important

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

适用于