XmlReader.GetAttribute Method
This page is specific to:.NET Framework Version:1.12.03.03.5Silverlight 34.0
.NET Framework Class Library
XmlReader.GetAttribute Method

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

Overload List

When overridden in a derived class, gets the value of the attribute with the specified index.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Function GetAttribute(Integer) As String
[C#] public abstract string GetAttribute(int);
[C++] public: virtual String* GetAttribute(int) = 0;
[JScript] public abstract function GetAttribute(int) : String;

When overridden in a derived class, gets the value of the attribute with the specified Name.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Function GetAttribute(String) As String
[C#] public abstract string GetAttribute(string);
[C++] public: virtual String* GetAttribute(String*) = 0;
[JScript] public abstract function GetAttribute(String) : String;

When overridden in a derived class, gets the value of the attribute with the specified LocalName and NamespaceURI.

Supported by the .NET Compact Framework.

[Visual Basic] Overloads Public MustOverride Function GetAttribute(String, String) As String
[C#] public abstract string GetAttribute(string, string);
[C++] public: virtual String* GetAttribute(String*, String*) = 0;
[JScript] public abstract function GetAttribute(String, String) : String;

Example

See GetAttribute (in the XmlTextReader class) for an example using this method.

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View