This documentation is archived and is not being maintained.

XmlDictionaryReader.GetAttribute Method (XmlDictionaryString, XmlDictionaryString)

When overridden in a derived class, gets the value of an attribute.

Namespace: System.Xml
Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)

virtual String^ GetAttribute (
	XmlDictionaryString^ localName, 
	XmlDictionaryString^ namespaceUri
public String GetAttribute (
	XmlDictionaryString localName, 
	XmlDictionaryString namespaceUri
public function GetAttribute (
	localName : XmlDictionaryString, 
	namespaceUri : XmlDictionaryString
) : String
Not applicable.



An XmlDictionaryString that represents the local name of the attribute.


An XmlDictionaryString that represents the namespace of the attribute.

Return Value

The value of the attribute.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0