ServiceInstallerDialog.Result 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得服務帳戶表單的對話結果。
public:
property System::ServiceProcess::Design::ServiceInstallerDialogResult Result { System::ServiceProcess::Design::ServiceInstallerDialogResult get(); };
public System.ServiceProcess.Design.ServiceInstallerDialogResult Result { get; }
member this.Result : System.ServiceProcess.Design.ServiceInstallerDialogResult
Public ReadOnly Property Result As ServiceInstallerDialogResult
屬性值
A ServiceInstallerDialogResult 表示使用者對對話框的回應。 預設值為 OK。
備註
請用 ShowDialog 提示使用者輸入服務安裝帳號,然後檢查 Result 數值。 若值為 OK,則驗證輸入 Username 與 Password 是否有效。