NAnt SDK Documentation - v0.92

Project Constructor (String, Level, Int32, XmlNode)

Initializes a new Project class with the given source, message threshold and indentation level, and using the specified XmlNode to load internal configuration settings.

[Visual Basic]
Overloads Public Sub New( _
   ByVal uriOrFilePath As String, _
   ByVal threshold As Level, _
   ByVal indentLevel As Integer, _
   ByVal configurationNode As XmlNode _
)
[C#]
public Project(
   string uriOrFilePath,
   Level threshold,
   int indentLevel,
   XmlNode configurationNode
);

Parameters

uriOrFilePath

The full path to the build file.

This can be of any form that Load accepts.

threshold
The message threshold.
indentLevel
The project indentation level.
configurationNode
The XmlNode NAnt should use to initialize configuration settings.

Remarks

If the source is a uri of form 'file:///path' then use the path part.

Exceptions

Exception Type Condition
ArgumentNullException configurationNode is a null reference (Nothing in Visual Basic).

See Also

Project Class | NAnt.Core Namespace | Project Constructor Overload List