ServiceInstallerDialog.Result 属性

定义

获取服务帐户窗体的对话框结果。Gets the dialog result for the service account form.

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

属性值

指示用户响应对话框的 ServiceInstallerDialogResultA ServiceInstallerDialogResult indicating the user response to the dialog box. 默认值为 OKThe default is OK.

注解

使用ShowDialog提示用户输入服务安装帐户, 然后Result检查值。Use ShowDialog to prompt the user for the service installation account, then check the Result value. 如果值为OK, 则验证输入UsernamePassword是否有效。If the value is OK, verify that the input Username and Password are valid.

适用于

另请参阅