AddInPostDeploymentActionArgs.InstallationStatus 属性
获取正在执行的外接程序安装的类型。
命名空间: Microsoft.VisualStudio.Tools.Applications.Deployment
程序集: Microsoft.VisualStudio.Tools.Applications.Runtime(在 Microsoft.VisualStudio.Tools.Applications.Runtime.dll 中)
语法
声明
Public ReadOnly Property InstallationStatus As AddInInstallationStatus
Get
public AddInInstallationStatus InstallationStatus { get; }
属性值
类型:Microsoft.VisualStudio.Tools.Applications.Deployment.AddInInstallationStatus
正在执行的外接程序安装的类型。
备注
下表显示了 InstallationStatus 的枚举值。
成员 |
说明 |
---|---|
第一次安装外接程序。 会检索应用程序和部署清单,并调用 VerifyAddInPermissions 来分析清单,然后分析签名。 如果使用“不受信任的发行者”列表中的证书对部署清单进行了签名,则安装结束。 对于所有其他情况,VerifyAddInTrust 检查信任证据以了解正确权限级别。 |
|
已计划运行外接程序来检查更新,但无法访问更新位置。 |
|
外接程序不需要更新,将从 ClickOnce 缓存中运行。 |
|
外接程序从包含部署清单的文件夹中运行,因为主机应用程序已将 RunFromFolder 属性设置为 true。 如果要测试或运行外接程序而不安装它,这很有用。 此外,外接程序也未安装到 ClickOnce 高速缓存中。 |
|
正在卸载外接程序。 |
|
正在更新外接程序。 安装步骤与 InitialInstall 相同。 |
|
正在卸载外接程序的当前版本,而且正在安装外接程序的以前版本。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。