AppInstallManager.SearchForAllUpdatesForUserAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SearchForAllUpdatesForUserAsync(User, String) |
使用產生遙測資料的選項,搜尋目前電腦或裝置上所安裝應用程式的所有可用更新。 |
SearchForAllUpdatesForUserAsync(User, String, String, AppUpdateOptions) |
搜尋目前電腦或裝置上所安裝應用程式的所有可用更新,以取得指定的使用者,並能夠允許強制應用程式重新開機,以及產生遙測資料的選項。 |
SearchForAllUpdatesForUserAsync(User, String)
使用產生遙測資料的選項,搜尋目前電腦或裝置上所安裝應用程式的所有可用更新。
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))
參數
- user
- User
物件,識別要為此作業指定的使用者。
- correlationVector
-
String
Platform::String
winrt::hstring
可用來產生遙測資料的相互關聯向量字串。
傳回
在成功完成時,非同步作業會傳回具有可用更新的應用程式集合。 如果您使用 非同步程式設計,結果類型是 AppInstallItem 專案的唯讀清單/向量。 (您可以使用適用于 C++ 或 JavaScript 的IVectorView < AppInstallItem> API、適用于 .NET.) 的IReadOnlyList < AppInstallItem > API
- 屬性
Windows 需求
裝置系列 |
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)
|
應用程式功能 |
runFullTrust
|
適用於
SearchForAllUpdatesForUserAsync(User, String, String, AppUpdateOptions)
搜尋目前電腦或裝置上所安裝應用程式的所有可用更新,以取得指定的使用者,並能夠允許強制應用程式重新開機,以及產生遙測資料的選項。
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))
參數
- user
- User
物件,識別要為此作業指定的使用者。
- correlationVector
-
String
Platform::String
winrt::hstring
可用來產生遙測資料的相互關聯向量字串。
- clientId
-
String
Platform::String
winrt::hstring
呼叫端的識別碼。
- updateOptions
- AppUpdateOptions
提供作業的其他選項,包括允許強制應用程式重新開機的能力。
傳回
在成功完成時,非同步作業會傳回具有可用更新的應用程式集合。 如果您使用 非同步程式設計,結果類型是 AppInstallItem 專案的唯讀清單/向量。 (您可以使用適用于 C++ 或 JavaScript 的IVectorView < AppInstallItem> API、適用于 .NET.) 的IReadOnlyList < AppInstallItem > API
- 屬性
Windows 需求
裝置系列 |
Windows 10, version 1803 (已於 10.0.17134.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
|
應用程式功能 |
runFullTrust
|