NAnt SDK Documentation - v0.85-nightly-2005-11-09

Element.GetAttributeConfigurationNode Method 

[This is preliminary documentation and subject to change.]

Locates the XML node for the specified attribute in the project configuration node.

[Visual Basic]
Protected Function GetAttributeConfigurationNode( _
   ByVal framework As FrameworkInfo, _
   ByVal attributeName As String _
) As XmlNode
[C#]
protected XmlNode GetAttributeConfigurationNode(
   FrameworkInfo framework,
   string attributeName
);

Parameters

framework
The framework to use to obtain framework specific information, or a null reference (Nothing in Visual Basic) if no framework specific information should be used.
attributeName
The name of attribute for which the XML configuration node should be located.

Return Value

The XML configuration node for the specified attribute, or a null reference (Nothing in Visual Basic) if no corresponding XML node could be located.

Remarks

If there's a valid current framework, the configuration section for that framework will first be searched. If no corresponding configuration node can be located in that section, the framework-neutral section of the project configuration node will be searched.

See Also

Element Class | NAnt.Core Namespace