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

Gets the value of the attribute with the specified LocalNameLocalNameLocalName and NamespaceURINamespaceURINamespaceURI.

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 or the value is String.Empty, nuillnuillnuill is returned. This method does not move the reader.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException name is null a null reference (Nothing in Visual Basic) nullptr.