Package.StageContentGroupsAsync Package.StageContentGroupsAsync Package.StageContentGroupsAsync Package.StageContentGroupsAsync Package.StageContentGroupsAsync Method

Definition

Overloads

StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>)

Put the packages in the specified content groups into the staging queue.

StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean)

Put the packages in the specified content groups into the staging queue; optionally placing the content groups at the head of the queue.

StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>) StageContentGroupsAsync(IIterable<String>)

Put the packages in the specified content groups into the staging queue.

public : IAsyncOperation<IVector<PackageContentGroup>> StageContentGroupsAsync(IIterable<Platform::String> names)
IAsyncOperation<IVector<PackageContentGroup>> StageContentGroupsAsync(IIterable<winrt::hstring> names) const;
public IAsyncOperation<IList<PackageContentGroup>> StageContentGroupsAsync(IEnumerable<String> names)
Public Function StageContentGroupsAsync(names As IEnumerable(Of String)) As IAsyncOperation<IList<PackageContentGroup>>(Of IVector)
Windows.ApplicationModel.Package.stageContentGroupsAsync(names).done( /* Your success and error handlers */ );

Parameters

names
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The names of the content groups to stage.

Returns

IAsyncOperation<IList<PackageContentGroup>> IAsyncOperation<IList<PackageContentGroup>> IAsyncOperation<IList<PackageContentGroup>>

A list of PackageContentGroup objects for each content group specified by the names parameter.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

This function completes when all requested groups are staged. The returned list may contain a null element if the named group in that position does not exist. Use PackageCatalog.PackageContentGroupStaging to observe staging progress.

Be sure to check PackageContentGroup.State to verify that the group was successfully staged. Referencing files in a group that is not fully staged may result in unexpected application behavior. Content groups return to the PackageContentGroupState.NotStaged state if the staging operation cannot be completed.

StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean) StageContentGroupsAsync(IIterable<String>, Boolean)

Put the packages in the specified content groups into the staging queue; optionally placing the content groups at the head of the queue.

public : IAsyncOperation<IVector<PackageContentGroup>> StageContentGroupsAsync(IIterable<Platform::String> names, bool moveToHeadOfQueue)
IAsyncOperation<IVector<PackageContentGroup>> StageContentGroupsAsync(IIterable<winrt::hstring> names, bool moveToHeadOfQueue) const;
public IAsyncOperation<IList<PackageContentGroup>> StageContentGroupsAsync(IEnumerable<String> names, Boolean moveToHeadOfQueue)
Public Function StageContentGroupsAsync(names As IEnumerable(Of String), moveToHeadOfQueue As Boolean) As IAsyncOperation<IList<PackageContentGroup>>(Of IVector)
Windows.ApplicationModel.Package.stageContentGroupsAsync(names, moveToHeadOfQueue).done( /* Your success and error handlers */ );

Parameters

names
IEnumerable<String> IEnumerable<String> IEnumerable<String>

The names of the content groups to stage.

moveToHeadOfQueue
Boolean Boolean Boolean

True to move the content group to the head of the staging queue; false otherwise.

Returns

IAsyncOperation<IList<PackageContentGroup>> IAsyncOperation<IList<PackageContentGroup>> IAsyncOperation<IList<PackageContentGroup>>

A list of PackageContentGroup objects for each content group specified by the names parameter.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

This function completes when all requested groups are staged. The returned list may contain a null element if the named group in that position does not exist. Use PackageCatalog.PackageContentGroupStaging to observe staging progress.

Be sure to check PackageContentGroup.State to verify that the group was successfully staged. Referencing files in a group that is not fully staged may result in unexpected application behavior. Content groups return to the PackageContentGroupState.NotStaged state if the staging operation cannot be completed.