NAnt SDK Documentation - v0.92

VcFileConfiguration.GetToolSetting Method (String, String, String)

Gets the value of a given setting for a specified tool.

[Visual Basic]
Overrides Overloads Public Function GetToolSetting( _
   ByVal toolName As String, _
   ByVal settingName As String, _
   ByVal projectDefault As String _
) As String
[C#]
public override string GetToolSetting(
   string toolName,
   string settingName,
   string projectDefault
);

Parameters

toolName
The name of the tool.
settingName
The name of the setting.
projectDefault
The value to return if setting is not defined in both the file and project configuration.

Return Value

The value of a setting for the specified tool, or settingName if the setting is not defined in both the file and project configuration.

Remarks

If the setting is not defined in the file configuration, then the project level setting will be used.

An empty setting value, which is used as a means to override the project default, will be returned as a empty String.

See Also

VcFileConfiguration Class | NAnt.VSNet Namespace | VcFileConfiguration.GetToolSetting Overload List