CmdLineOptionParser.IsSimpleOption(String, String) 方法

定義

驗證指定的選項語式是否正確。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static bool IsSimpleOption(System::String ^ option, System::String ^ prefix);
public static bool IsSimpleOption (string option, string prefix);
static member IsSimpleOption : string * string -> bool
Public Shared Function IsSimpleOption (option As String, prefix As String) As Boolean

參數

option
String

使用者指定的命令列選項。

prefix
String

選項名稱。

傳回

Boolean

如果選項語式正確,則為 true,否則為 false

適用於