Share via


AppInstallManager.SearchForUpdatesAsync 方法

定义

重载

SearchForUpdatesAsync(String, String)

搜索指定应用的更新。

SearchForUpdatesAsync(String, String, String, String)

使用 生成遥测数据的选项搜索指定应用的更新。

SearchForUpdatesAsync(String, String, String, String, AppUpdateOptions)

搜索指定应用的更新,以及允许强制应用重启和生成遥测数据的选项。

SearchForUpdatesAsync(String, String)

搜索指定应用的更新。

public:
 virtual IAsyncOperation<AppInstallItem ^> ^ SearchForUpdatesAsync(Platform::String ^ productId, Platform::String ^ skuId) = SearchForUpdatesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppInstallItem> SearchForUpdatesAsync(winrt::hstring const& productId, winrt::hstring const& skuId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppInstallItem> SearchForUpdatesAsync(string productId, string skuId);
function searchForUpdatesAsync(productId, skuId)
Public Function SearchForUpdatesAsync (productId As String, skuId As String) As IAsyncOperation(Of AppInstallItem)

参数

productId
String

Platform::String

winrt::hstring

要查询更新的应用的产品 ID。

skuId
String

Platform::String

winrt::hstring

要查询更新的 SKU。

返回

一个异步操作,该操作在成功完成后返回表示可用更新的 AppInstallItem

属性

Windows 要求

应用功能
runFullTrust

另请参阅

适用于

SearchForUpdatesAsync(String, String, String, String)

使用 生成遥测数据的选项搜索指定应用的更新。

public:
 virtual IAsyncOperation<AppInstallItem ^> ^ SearchForUpdatesAsync(Platform::String ^ productId, Platform::String ^ skuId, Platform::String ^ catalogId, Platform::String ^ correlationVector) = SearchForUpdatesAsync;
/// [Windows.Foundation.Metadata.Overload("SearchForUpdatesWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppInstallItem> SearchForUpdatesAsync(winrt::hstring const& productId, winrt::hstring const& skuId, winrt::hstring const& catalogId, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.Overload("SearchForUpdatesWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppInstallItem> SearchForUpdatesAsync(string productId, string skuId, string catalogId, string correlationVector);
function searchForUpdatesAsync(productId, skuId, catalogId, correlationVector)
Public Function SearchForUpdatesAsync (productId As String, skuId As String, catalogId As String, correlationVector As String) As IAsyncOperation(Of AppInstallItem)

参数

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

可用于生成遥测数据的关联向量字符串。

返回

一个异步操作,该操作在成功完成后返回表示可用更新的 AppInstallItem

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
应用功能
runFullTrust

另请参阅

适用于

SearchForUpdatesAsync(String, String, String, String, AppUpdateOptions)

搜索指定应用的更新,以及允许强制应用重启和生成遥测数据的选项。

public:
 virtual IAsyncOperation<AppInstallItem ^> ^ SearchForUpdatesAsync(Platform::String ^ productId, Platform::String ^ skuId, Platform::String ^ correlationVector, Platform::String ^ clientId, AppUpdateOptions ^ updateOptions) = SearchForUpdatesAsync;
/// [Windows.Foundation.Metadata.Overload("SearchForUpdatesWithUpdateOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppInstallItem> SearchForUpdatesAsync(winrt::hstring const& productId, winrt::hstring const& skuId, winrt::hstring const& correlationVector, winrt::hstring const& clientId, AppUpdateOptions const& updateOptions);
[Windows.Foundation.Metadata.Overload("SearchForUpdatesWithUpdateOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppInstallItem> SearchForUpdatesAsync(string productId, string skuId, string correlationVector, string clientId, AppUpdateOptions updateOptions);
function searchForUpdatesAsync(productId, skuId, correlationVector, clientId, updateOptions)
Public Function SearchForUpdatesAsync (productId As String, skuId As String, correlationVector As String, clientId As String, updateOptions As AppUpdateOptions) As IAsyncOperation(Of AppInstallItem)

参数

productId
String

Platform::String

winrt::hstring

要查询更新的应用的产品 ID。

skuId
String

Platform::String

winrt::hstring

要查询更新的应用的 SKU ID。

correlationVector
String

Platform::String

winrt::hstring

可用于生成遥测数据的关联向量字符串。

clientId
String

Platform::String

winrt::hstring

调用方 ID。

updateOptions
AppUpdateOptions

为操作提供其他选项,包括允许强制应用重启的功能。

返回

一个异步操作,该操作在成功完成后返回表示可用更新的 AppInstallItem

属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)
应用功能
runFullTrust

适用于