AppInstallManager.SearchForUpdatesAsync Method

Definition

Overloads

SearchForUpdatesAsync(String, String)

Searches for updates for the specified app.

SearchForUpdatesAsync(String, String, String, String)

Searches for updates for the specified app, with the option to generate telemetry data.

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

Searches for updates for the specified app, with the ability to allow a forced app restart and the option to generate telemetry data.

SearchForUpdatesAsync(String, String)

Searches for updates for the specified app.

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)

Parameters

productId
String

Platform::String

winrt::hstring

The product ID of the app to be queried for updates.

skuId
String

Platform::String

winrt::hstring

The SKU to be queried for updates.

Returns

An asynchronous operation that, on successful completion, returns an AppInstallItem that represents the available update.

Attributes

Windows requirements

App capabilities
runFullTrust

See also

Applies to

SearchForUpdatesAsync(String, String, String, String)

Searches for updates for the specified app, with the option to generate telemetry data.

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)

Parameters

productId
String

Platform::String

winrt::hstring

The product ID of the app to be queried for updates.

skuId
String

Platform::String

winrt::hstring

The SKU ID of the app to be queried for updates.

catalogId
String

Platform::String

winrt::hstring

The catalog ID of the app to be queried for updates.

correlationVector
String

Platform::String

winrt::hstring

A correlation vector string that can be used to generate telemetry data.

Returns

An asynchronous operation that, on successful completion, returns an AppInstallItem that represents the available update.

Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v2.0)
App capabilities
runFullTrust

See also

Applies to

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

Searches for updates for the specified app, with the ability to allow a forced app restart and the option to generate telemetry data.

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)

Parameters

productId
String

Platform::String

winrt::hstring

The product ID of the app to be queried for updates.

skuId
String

Platform::String

winrt::hstring

The SKU ID of the app to be queried for updates.

correlationVector
String

Platform::String

winrt::hstring

A correlation vector string that can be used to generate telemetry data.

clientId
String

Platform::String

winrt::hstring

The ID of the caller.

updateOptions
AppUpdateOptions

Provides additional options for the operation, including the ability to allow a forced app restart.

Returns

An asynchronous operation that, on successful completion, returns an AppInstallItem that represents the available update.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)
App capabilities
runFullTrust

Applies to