AppInstallManager.SearchForUpdatesForUserAsync Method

Definition

Overloads

SearchForUpdatesForUserAsync(User, String, String, String, String, AppUpdateOptions)

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

SearchForUpdatesForUserAsync(User, String, String, String, String)

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

SearchForUpdatesForUserAsync(User, String, String, String, String, AppUpdateOptions)

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

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

Parameters

user
User

An object that identifies the user to specify for this operation.

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

SearchForUpdatesForUserAsync(User, String, String, String, String)

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

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

Parameters

user
User

An object that identifies the user to specify for this operation.

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 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App capabilities
runFullTrust

Applies to