Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: XAttribute AttributeI(this XElement, string)

Declaration

public static XAttribute AttributeI(
    this XElement element,
    string name
)

Summary

Returns the first attribute of this element that has the specified local name (ignoring the namespace).

Parameters

this XElementelement XML element to search.
stringname The name to match.

Returns

The first attribute if found or null if no such attribute exists.