CmdLineOptionParser.IsBooleanOption Method (String, String)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the + or - argument from the specified command-line option. Applies to options that have only one name, such as /debug[+|-].

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public static object IsBooleanOption(
	string option,
	string prefix
)

Parameters

option
Type: System.String

The command-line option that the user specified.

prefix
Type: System.String

The option name.

Return Value

Type: System.Object

false for -; true for + or if the argument is not specified; null if the option or argument is not correctly formed.

.NET Framework
Available since 1.1
Return to top
Show: