AppInstallManager.GetIsAppAllowedToInstallAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetIsAppAllowedToInstallAsync(String, String, String, String) |
使用 生成遥测数据的选项,确定指定的应用是否有权在当前计算机或设备上安装。 |
GetIsAppAllowedToInstallAsync(String) |
确定指定的应用是否有权在当前计算机或设备上安装。 |
GetIsAppAllowedToInstallAsync(String, String, String, String)
使用 生成遥测数据的选项,确定指定的应用是否有权在当前计算机或设备上安装。
public:
virtual IAsyncOperation<bool> ^ GetIsAppAllowedToInstallAsync(Platform::String ^ productId, Platform::String ^ skuId, Platform::String ^ catalogId, Platform::String ^ correlationVector) = GetIsAppAllowedToInstallAsync;
/// [Windows.Foundation.Metadata.Overload("GetIsAppAllowedToInstallWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsAppAllowedToInstallAsync(winrt::hstring const& productId, winrt::hstring const& skuId, winrt::hstring const& catalogId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.Overload("GetIsAppAllowedToInstallWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsAppAllowedToInstallAsync(string productId, string skuId, string catalogId, string correlationVector);
function getIsAppAllowedToInstallAsync(productId, skuId, catalogId, correlationVector)
Public Function GetIsAppAllowedToInstallAsync (productId As String, skuId As String, catalogId As String, correlationVector As String) As IAsyncOperation(Of Boolean)
参数
- productId
-
String
Platform::String
winrt::hstring
此方法将检查的应用的产品 ID,以确定其是否具有安装权限。
- skuId
-
String
Platform::String
winrt::hstring
此方法将检查的应用的 SKU ID,以确定其是否具有安装权限。
- catalogId
-
String
Platform::String
winrt::hstring
此方法将检查的应用的目录 ID,以确定其是否具有安装权限。
- correlationVector
-
String
Platform::String
winrt::hstring
可用于生成遥测数据的关联向量字符串。
返回
如果应用具有安装权限,则成功完成后返回 true 的异步操作;否则为 false。
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10586.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
|
应用功能 |
runFullTrust
|
另请参阅
适用于
GetIsAppAllowedToInstallAsync(String)
确定指定的应用是否有权在当前计算机或设备上安装。
public:
virtual IAsyncOperation<bool> ^ GetIsAppAllowedToInstallAsync(Platform::String ^ productId) = GetIsAppAllowedToInstallAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> GetIsAppAllowedToInstallAsync(winrt::hstring const& productId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> GetIsAppAllowedToInstallAsync(string productId);
function getIsAppAllowedToInstallAsync(productId)
Public Function GetIsAppAllowedToInstallAsync (productId As String) As IAsyncOperation(Of Boolean)
参数
- productId
-
String
Platform::String
winrt::hstring
此方法将检查的应用的产品 ID,以确定其是否具有安装权限。
返回
如果应用具有安装权限,则成功完成后返回 true 的异步操作;否则为 false。
- 属性
Windows 要求
应用功能 |
runFullTrust
|