Attr class

The Attr interface represents an attribute in an Element object. Typically the allowable values for the attribute are defined in a schema associated with the document.

public class Attr


Name Description
IsId { get; } Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not.
LocalName { get; } Gets the local name of attribute.
Name { get; } Gets the name of this attribute.
NamespaceUri { get; } Gets the namespace URI of attribute.
Prefix { get; } Gets the namespace prefix of attribute.
Specified { get; } True if this attribute was explicitly given a value in the instance document, false otherwise.
Value { get; set; } Gets the value of attribute.


Name Description
override GetHashCode() Gets the hash code of the attribute.

See Also