Share via


AppInstallManager.SearchForAllUpdatesForUserAsync Method

Definition

Overloads

SearchForAllUpdatesForUserAsync(User, String)

Searches for all available updates to apps installed on the current computer or device for the specified user, with the option to generate telemetry data.

SearchForAllUpdatesForUserAsync(User, String, String, AppUpdateOptions)

Searches for all available updates to apps installed on the current computer or device for the specified user, with the ability to allow forced app restarts and the option to generate telemetry data.

SearchForAllUpdatesForUserAsync(User, String)

Searches for all available updates to apps installed on the current computer or device for the specified user, with the option to generate telemetry data.

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

Parameters

user
User

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

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 the collection of apps that have available updates. If you use Asynchronous programming, the result type is a read-only list/vector of AppInstallItem items. (You can use APIs of IVectorView<AppInstallItem> for C++ or JavaScript, APIs of IReadOnlyList<AppInstallItem> for .NET.)

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

SearchForAllUpdatesForUserAsync(User, String, String, AppUpdateOptions)

Searches for all available updates to apps installed on the current computer or device for the specified user, with the ability to allow forced app restarts and the option to generate telemetry data.

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

Parameters

user
User

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

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 forced app restarts.

Returns

An asynchronous operation that, on successful completion, returns the collection of apps that have available updates. If you use Asynchronous programming, the result type is a read-only list/vector of AppInstallItem items. (You can use APIs of IVectorView<AppInstallItem> for C++ or JavaScript, APIs of IReadOnlyList<AppInstallItem> for .NET.)

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