CmdLineOptionParser.IsBooleanOption Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the argument from a command-line option that accepts a +
or -
switch argument, such as /debug[+|-]
.
Overloads
IsBooleanOption(String, String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the |
IsBooleanOption(String, String, String) |
This API supports the product infrastructure and is not intended to be used directly from your code. Gets the |
IsBooleanOption(String, String)
Gets the +
or -
argument from the specified command-line option. Applies to options that have only one name, such as /debug[+|-]
.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static System::Object ^ IsBooleanOption(System::String ^ option, System::String ^ prefix);
public static object IsBooleanOption (string option, string prefix);
static member IsBooleanOption : string * string -> obj
Public Shared Function IsBooleanOption (option As String, prefix As String) As Object
Parameters
- option
- String
The command-line option that the user specified.
- prefix
- String
The option name.
Returns
false
for -
; true
for +
or if the argument is not specified; null if the option or argument is not correctly formed.
Applies to
IsBooleanOption(String, String, String)
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.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static System::Object ^ IsBooleanOption(System::String ^ option, System::String ^ shortPrefix, System::String ^ longPrefix);
public static object IsBooleanOption (string option, string shortPrefix, string longPrefix);
static member IsBooleanOption : string * string * string -> obj
Public Shared Function IsBooleanOption (option As String, shortPrefix As String, longPrefix As String) As Object
Parameters
- option
- String
The command-line option that the user specified.
- shortPrefix
- String
The short form of the option name.
- longPrefix
- String
The long form of the option name.
Returns
false
for -
; true
for +
or if the argument is not specified; null if the option or argument is not correctly formed.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기