Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CmdLineOptionParser.IsBooleanOption Method (String, String, String)

This API supports the .NET Framework 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 can be specified by a short or long form of the option name.

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

public static Object IsBooleanOption(
	string option,
	string shortPrefix,
	string longPrefix
)

Parameters

option
Type: System.String

The command-line option that the user specified.

shortPrefix
Type: System.String

The short form of the option name.

longPrefix
Type: System.String

The long form of 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft