NAnt SDK Documentation - v0.92 |

# Element Methods

The methods of the Element class are listed below. For a complete list of Element class members, see the Element Members topic.

#### Public Static (Shared) Methods

InitializeBuildElement |

#### Public Instance Methods

Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type.
GetLocation | Retrieves the location in the build file where the element is defined.
GetType (inherited from Object) | Gets the Type of the current instance.
Initialize | Overloaded. Performs default initialization.
Log | Overloaded. Logs a message with the given priority.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### Protected Instance Methods

CopyTo | Copies all instance data of the Element to a given Element.
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetAttributeConfigurationNode | Overloaded. Locates the XML node for the specified attribute in the project configuration node.
Initialize | Overloaded. Derived classes should override to this method to provide extra initialization and validation not covered by the base class.
InitializeElement | Obsolete. Derived classes should override to this method to provide extra initialization and validation not covered by the base class.
InitializeXml | Initializes all build attributes and child elements.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.

#### See Also

Element Class | NAnt.Core Namespace