Intersoft ClientUI Documentation
GetAttribute(String,String) Method



The local name of the attribute.
The namespace URI of the attribute.
Gets the value of the attribute with the specified System.Xml.XmlReader.LocalName and System.Xml.XmlReader.NamespaceURI.
Syntax
Public Overloads Overrides Function GetAttribute( _
   ByVal name As String, _
   ByVal namespaceURI As String _
) As String
Dim instance As XPSParser
Dim name As String
Dim namespaceURI As String
Dim value As String
 
value = instance.GetAttribute(name, namespaceURI)
public override string GetAttribute( 
   string name,
   string namespaceURI
)
public:
String^ GetAttribute( 
   String^ name,
   String^ namespaceURI
) override 

Parameters

name
The local name of the attribute.
namespaceURI
The namespace URI of the attribute.

Return Value

The value of the specified attribute. If the attribute is not found or the value is String.Empty, null is returned. This method does not move the reader.
Exceptions
ExceptionDescription
System.ArgumentNullException name is null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XPSParser Class
XPSParser Members
Overload List

Send Feedback