CmdLineOptionParser.IsArgumentOption Method (String, String, String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Gets the argument from the specified command-line option. Applies to options that can be specified by a short or long form of the option name, such as /r or /reference for /r[eference]:<file list>.

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

public static string IsArgumentOption(
	string option,
	string shortPrefix,
	string longPrefix


Type: System.String

The command-line option that the user specified.

Type: System.String

The short form of the option name.

Type: System.String

The long form of the option name.

Return Value

Type: System.String

The argument, "" if the argument is not specified, or null if the option or argument is not correctly formed.

.NET Framework
Available since 1.1
Return to top