DelegatingXmlReader.GetAttribute Method (string, string)DelegatingXmlReader.GetAttribute Method (String, String)DelegatingXmlReader::GetAttribute Method (String^, String^)

Returns the value of the attribute with the specified local name and namespace URI.

Syntax

Public Overrides Function GetAttribute( _
    name As String, _
    namespaceURI As String _
) As String
public override string GetAttribute(
    string name,
    string namespaceURI
)
public:
virtual String^ GetAttribute(
    String^ name, 
    String^ namespaceURI
) override
 

Parameters

name

Type: System.StringSystem.StringSystem::String^

The local name of the attribute.

namespaceURI

Type: System.StringSystem.StringSystem::String^

The namespace URI of the attribute.

Return Value

Type: System.StringSystem.StringSystem::String^

The value of the specified attribute. If the attribute is not found, null a null reference (Nothing in Visual Basic) nullptr is returned. This method does not move the reader.