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
這個方法將檢查的應用程式產品識別碼,以判斷其是否具有安裝的許可權。
- skuId
-
String
Platform::String
winrt::hstring
這個方法將檢查的應用程式 SKU 識別碼,以判斷其是否具有安裝的許可權。
- catalogId
-
String
Platform::String
winrt::hstring
這個方法將檢查的應用程式目錄識別碼,以判斷其是否具有安裝的許可權。
- 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
這個方法將檢查的應用程式產品識別碼,以判斷其是否具有安裝的許可權。
傳回
在成功完成時,如果應用程式具有安裝的許可權,則非同步作業會傳回 true;否則為 false。
- 屬性
Windows 需求
應用程式功能 |
runFullTrust
|