ManagedInstallerClass.IManagedInstaller.ManagedInstall(String, Int32) 方法
定义
有关此成员的说明,请参见 ManagedInstall(String, Int32)。For a description of this member, see ManagedInstall(String, Int32).
此 API 支持产品基础结构,不能在代码中直接使用。
virtual int System.Configuration.Install.IManagedInstaller.ManagedInstall(System::String ^ argString, int hInstall) = System::Configuration::Install::IManagedInstaller::ManagedInstall;
int IManagedInstaller.ManagedInstall (string argString, int hInstall);
abstract member System.Configuration.Install.IManagedInstaller.ManagedInstall : string * int -> int
override this.System.Configuration.Install.IManagedInstaller.ManagedInstall : string * int -> int
Function ManagedInstall (argString As String, hInstall As Integer) As Integer Implements IManagedInstaller.ManagedInstall
参数
- argString
- String
要安装的命令行。The command line to install.
- hInstall
- Int32
安装的句柄。The handle to the installation.
返回
installutil.exe 的返回代码。The return code for installutil.exe. 成功安装返回 0。A successful installation returns 0. 其他值表示安装失败。Other values indicate failure.
实现
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ManagedInstallerClass 实例被强制转换为 IManagedInstaller 接口时使用。It can be used only when the ManagedInstallerClass instance is cast to an IManagedInstaller interface.