AppInstallManager.SearchForAllUpdatesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SearchForAllUpdatesAsync() |
Searches for all available updates to apps installed on the current computer or device. |
SearchForAllUpdatesAsync(String) |
Searches for all available updates to apps installed on the current computer or device, with the option to generate telemetry data. |
SearchForAllUpdatesAsync(String, String, AppUpdateOptions) |
Searches for all available updates to apps installed on the current computer or device, with the ability to allow forced app restarts and the option to generate telemetry data. |
SearchForAllUpdatesAsync()
Searches for all available updates to apps installed on the current computer or device.
public:
virtual IAsyncOperation<IVectorView<AppInstallItem ^> ^> ^ SearchForAllUpdatesAsync() = SearchForAllUpdatesAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<AppInstallItem>> SearchForAllUpdatesAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<AppInstallItem>> SearchForAllUpdatesAsync();
function searchForAllUpdatesAsync()
Public Function SearchForAllUpdatesAsync () As IAsyncOperation(Of IReadOnlyList(Of AppInstallItem))
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
App capabilities |
runFullTrust
|
See also
Applies to
SearchForAllUpdatesAsync(String)
Searches for all available updates to apps installed on the current computer or device, with the option to generate telemetry data.
public:
virtual IAsyncOperation<IVectorView<AppInstallItem ^> ^> ^ SearchForAllUpdatesAsync(Platform::String ^ correlationVector) = SearchForAllUpdatesAsync;
/// [Windows.Foundation.Metadata.Overload("SearchForAllUpdatesWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<AppInstallItem>> SearchForAllUpdatesAsync(winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.Overload("SearchForAllUpdatesWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<AppInstallItem>> SearchForAllUpdatesAsync(string correlationVector);
function searchForAllUpdatesAsync(correlationVector)
Public Function SearchForAllUpdatesAsync (correlationVector As String) As IAsyncOperation(Of IReadOnlyList(Of AppInstallItem))
Parameters
- 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 (introduced in 10.0.10586.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|
App capabilities |
runFullTrust
|
See also
Applies to
SearchForAllUpdatesAsync(String, String, AppUpdateOptions)
Searches for all available updates to apps installed on the current computer or device, with the ability to allow forced app restarts and the option to generate telemetry data.
public:
virtual IAsyncOperation<IVectorView<AppInstallItem ^> ^> ^ SearchForAllUpdatesAsync(Platform::String ^ correlationVector, Platform::String ^ clientId, AppUpdateOptions ^ updateOptions) = SearchForAllUpdatesAsync;
/// [Windows.Foundation.Metadata.Overload("SearchForAllUpdatesWithUpdateOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<AppInstallItem>> SearchForAllUpdatesAsync(winrt::hstring const& correlationVector, winrt::hstring const& clientId, AppUpdateOptions const& updateOptions);
[Windows.Foundation.Metadata.Overload("SearchForAllUpdatesWithUpdateOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<AppInstallItem>> SearchForAllUpdatesAsync(string correlationVector, string clientId, AppUpdateOptions updateOptions);
function searchForAllUpdatesAsync(correlationVector, clientId, updateOptions)
Public Function SearchForAllUpdatesAsync (correlationVector As String, clientId As String, updateOptions As AppUpdateOptions) As IAsyncOperation(Of IReadOnlyList(Of AppInstallItem))
Parameters
- 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
|