Request

Response

    Element.GetAttribute method

    Gets the value of a specific attribute by name.

    public string GetAttribute(string attributeName)
    
    parameterdescription
    attributeName The name of the attribute to retrieve.

    Return Value

    The attribute value if found, null otherwise.

    Exceptions

    exceptioncondition
    ArgumentException Thrown when attributeName is null or whitespace.

    See Also