共用方式為


AppInstallManager.UpdateAppByPackageFamilyNameAsync 方法

定義

多載

UpdateAppByPackageFamilyNameAsync(String)

啟動套件系列名稱所指定之應用程式的更新。

UpdateAppByPackageFamilyNameAsync(String, String)

使用產生遙測資料的選項,啟動套件系列名稱所指定的應用程式更新。

UpdateAppByPackageFamilyNameAsync(String)

啟動套件系列名稱所指定之應用程式的更新。

public:
 virtual IAsyncOperation<AppInstallItem ^> ^ UpdateAppByPackageFamilyNameAsync(Platform::String ^ packageFamilyName) = UpdateAppByPackageFamilyNameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppInstallItem> UpdateAppByPackageFamilyNameAsync(winrt::hstring const& packageFamilyName);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppInstallItem> UpdateAppByPackageFamilyNameAsync(string packageFamilyName);
function updateAppByPackageFamilyNameAsync(packageFamilyName)
Public Function UpdateAppByPackageFamilyNameAsync (packageFamilyName As String) As IAsyncOperation(Of AppInstallItem)

參數

packageFamilyName
String

Platform::String

winrt::hstring

要更新之應用程式的套件系列名稱。

傳回

成功完成時,非同步作業會傳回 AppInstallItem ,代表新增至安裝佇列的應用程式更新。

屬性

Windows 需求

應用程式功能
runFullTrust

另請參閱

適用於

UpdateAppByPackageFamilyNameAsync(String, String)

使用產生遙測資料的選項,啟動套件系列名稱所指定的應用程式更新。

public:
 virtual IAsyncOperation<AppInstallItem ^> ^ UpdateAppByPackageFamilyNameAsync(Platform::String ^ packageFamilyName, Platform::String ^ correlationVector) = UpdateAppByPackageFamilyNameAsync;
/// [Windows.Foundation.Metadata.Overload("UpdateAppByPackageFamilyNameWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<AppInstallItem> UpdateAppByPackageFamilyNameAsync(winrt::hstring const& packageFamilyName, winrt::hstring const& correlationVector);
[Windows.Foundation.Metadata.Overload("UpdateAppByPackageFamilyNameWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<AppInstallItem> UpdateAppByPackageFamilyNameAsync(string packageFamilyName, string correlationVector);
function updateAppByPackageFamilyNameAsync(packageFamilyName, correlationVector)
Public Function UpdateAppByPackageFamilyNameAsync (packageFamilyName As String, correlationVector As String) As IAsyncOperation(Of AppInstallItem)

參數

packageFamilyName
String

Platform::String

winrt::hstring

要更新之應用程式的套件系列名稱。

correlationVector
String

Platform::String

winrt::hstring

可用來產生遙測資料的相互關聯向量字串。

傳回

成功完成時,非同步作業會傳回 AppInstallItem ,代表新增至安裝佇列的應用程式更新。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)
應用程式功能
runFullTrust

另請參閱

適用於