Share via


SharedPackageContainer Class

Definition

Represents a shared package container which groups packages together to run a shared virtual environment where they have access to the same virtual file system, virtual registry, and package files.

public ref class SharedPackageContainer sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Management.Deployment.SharedPackageContainerContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SharedPackageContainer final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Management.Deployment.SharedPackageContainerContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SharedPackageContainer
Public NotInheritable Class SharedPackageContainer
Inheritance
Object Platform::Object IInspectable SharedPackageContainer
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.22000.0)
API contract
Windows.Management.Deployment.SharedPackageContainerContract (introduced in v1.0)

Remarks

This object is a snapshot view of the shared package container and is not live data. Updating a container definition will not dynamically update an existing SharedPackageContainer object.

Use the SharedPackageContainerManager class to create, delete, and manage SharedPackageContainer objects.

Properties

Id

Gets the unique identifier on the device for the shared package container.

Name

Gets the name of the shared package container.

Methods

GetMembers()

Retrieves a list of SharedPackageContainerMember objects representing the set package families, and any associated tuple-data included in the container.

RemovePackageFamily(String, UpdateSharedPackageContainerOptions)

Removes the specified package family name from the shared package container.

ResetData()

Deletes all data in the shared package container, including virtualized AppData files and virtualized registry keys.

Applies to