XmlValidatingReader.Item[] 属性   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| Item[Int32] | 获取具有指定索引的属性的值。 | 
| Item[String] | 获取具有指定名称的属性的值。 | 
| Item[String, String] | 获取具有指定本地名称和命名空间 URI 的属性的值。 | 
Item[Int32]
Item[String]
获取具有指定名称的属性的值。
public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ name); };public override string this[string name] { get; }member this.Item(string) : stringDefault Public Overrides ReadOnly Property Item(name As String) As String参数
- name
- String
属性的限定名称。
属性值
指定的属性的值。 如果未找到该属性,则返回 null。
注解
此属性不移动读取器。
如果读取器位于 DocumentType 节点上,则此方法可用于获取 PUBLIC 和 SYSTEM 文本,例如 reader["PUBLIC"]。
适用于
Item[String, String]
获取具有指定本地名称和命名空间 URI 的属性的值。
public:
 virtual property System::String ^ default[System::String ^, System::String ^] { System::String ^ get(System::String ^ name, System::String ^ namespaceURI); };public override string this[string name, string namespaceURI] { get; }member this.Item(string * string) : stringDefault Public Overrides ReadOnly Property Item(name As String, namespaceURI As String) As String参数
- name
- String
属性的本地名称。
- namespaceURI
- String
属性的命名空间 URI。
属性值
指定的属性的值。 如果未找到该属性,则返回 null。
注解
此属性不移动读取器。