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

Gets the value of the attribute with the specified NameNameName.

Syntax

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

Parameters

name

Type: System.StringSystem.StringSystem::String^

The qualified name 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, null a null reference (Nothing in Visual Basic) nullptr is returned.

Exceptions

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