PackageManager.RegisterPackageByFamilyNameAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public:
virtual IAsyncOperationWithProgress<DeploymentResult ^, DeploymentProgress> ^ RegisterPackageByFamilyNameAsync(Platform::String ^ mainPackageFamilyName, IIterable<Platform::String ^> ^ dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume ^ appDataVolume, IIterable<Platform::String ^> ^ optionalPackageFamilyNames) = RegisterPackageByFamilyNameAsync;
/// [Windows.Foundation.Metadata.Overload("RegisterPackageByFamilyNameAndOptionalPackagesAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress> RegisterPackageByFamilyNameAsync(winrt::hstring const& mainPackageFamilyName, IIterable<winrt::hstring> const& dependencyPackageFamilyNames, DeploymentOptions const& deploymentOptions, PackageVolume const& appDataVolume, IIterable<winrt::hstring> const& optionalPackageFamilyNames);
[Windows.Foundation.Metadata.Overload("RegisterPackageByFamilyNameAndOptionalPackagesAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DeploymentResult,DeploymentProgress> RegisterPackageByFamilyNameAsync(string mainPackageFamilyName, IEnumerable<string> dependencyPackageFamilyNames, DeploymentOptions deploymentOptions, PackageVolume appDataVolume, IEnumerable<string> optionalPackageFamilyNames);
function registerPackageByFamilyNameAsync(mainPackageFamilyName, dependencyPackageFamilyNames, deploymentOptions, appDataVolume, optionalPackageFamilyNames)
Public Function RegisterPackageByFamilyNameAsync (mainPackageFamilyName As String, dependencyPackageFamilyNames As IEnumerable(Of String), deploymentOptions As DeploymentOptions, appDataVolume As PackageVolume, optionalPackageFamilyNames As IEnumerable(Of String)) As IAsyncOperationWithProgress(Of DeploymentResult, DeploymentProgress)
参数
- mainPackageFamilyName
-
String
Platform::String
winrt::hstring
一个字符串,指定要注册的main包的系列名称。
指定要注册的依赖项包的系列名称的字符串。
- deploymentOptions
- DeploymentOptions
一个 DeploymentOptions 类型的值,该值指定包部署选项。
- appDataVolume
- PackageVolume
要存储该应用数据的包卷。
指定要注册的main捆绑包中的可选包系列名称的字符串。
返回
部署进度的报告。 对象实现 IAsyncOperationWithProgress 模式。
- 属性
Windows 要求
设备系列 |
Windows 10 Creators Update (在 10.0.15063.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)
|