NAnt SDK Documentation - v0.92 |

# AbstractSourceControlTask.SetGlobalOption Method

Adds a new global option if none exists. If one does exist then the use switch is toggled on or of.

[Visual Basic]
Protected Sub SetGlobalOption( _
ByVal name As String, _
ByVal value As String, _
ByVal on As Boolean _
)
[C#]
protected void SetGlobalOption(
string name,
string value,
bool on
);

#### Parameters

name
  The common name of the option.
value
  The option value or command line switch of the option.
on

      true

  if the option should be appended to the commandline, otherwise

      false

  .

#### See Also

AbstractSourceControlTask Class | NAnt.SourceControl.Tasks Namespace