C# GetNamedItem()与索引

C# GetNamedItem()与索引,c#,xml,xml-attribute,xmlattributecollection,C#,Xml,Xml Attribute,Xmlattributecollection,在XmlAttributeCollection中,方法GetNamedItem(“测试”)和索引访问之间有区别吗?可能是在空处理中还是在其他方面 xml_node.Attributes.GetNamedItem("test").Value; xml_node.Attributes["test"].Value; 此属性是文档对象模型(DOM)的Microsoft扩展。它相当于呼叫 谢谢您。我在msdn上找不到它。

在XmlAttributeCollection中,方法GetNamedItem(“测试”)和索引访问之间有区别吗?可能是在空处理中还是在其他方面

xml_node.Attributes.GetNamedItem("test").Value;
xml_node.Attributes["test"].Value;

此属性是文档对象模型(DOM)的Microsoft扩展。它相当于呼叫


谢谢您。我在msdn上找不到它。