AppInstallManager.UpdateAppByPackageFamilyNameForUserAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用 生成遥测数据的选项,为包系列名称指定的给定用户启动应用更新。
public:
virtual IAsyncOperation<AppInstallItem ^> ^ UpdateAppByPackageFamilyNameForUserAsync(User ^ user, Platform::String ^ packageFamilyName, Platform::String ^ correlationVector) = UpdateAppByPackageFamilyNameForUserAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppInstallItem> UpdateAppByPackageFamilyNameForUserAsync(User const& user, winrt::hstring const& packageFamilyName, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppInstallItem> UpdateAppByPackageFamilyNameForUserAsync(User user, string packageFamilyName, string correlationVector);
function updateAppByPackageFamilyNameForUserAsync(user, packageFamilyName, correlationVector)
Public Function UpdateAppByPackageFamilyNameForUserAsync (user As User, packageFamilyName As String, correlationVector As String) As IAsyncOperation(Of AppInstallItem)
参数
- user
- User
一个 对象,标识要为此操作指定的用户。
- packageFamilyName
-
String
Platform::String
winrt::hstring
要更新的应用的包系列名称。
- correlationVector
-
String
Platform::String
winrt::hstring
可用于生成遥测数据的关联向量字符串。
返回
一个异步操作,该操作在成功完成时返回一个 AppInstallItem ,表示已添加到安装队列的应用更新。
- 属性
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
应用功能 |
runFullTrust
|