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

選項名稱。

傳回

true若選項正確形成;否則,。 false

適用於