PackageDependencyContext Class

Definition

Provides context info about a resolved framework package dependency that was created by using the PackageDependency.Add method.

public ref class PackageDependencyContext sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.ApplicationModel.DynamicDependency.IPackageDependencyContextFactory, 1)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class PackageDependencyContext final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.ApplicationModel.DynamicDependency.IPackageDependencyContextFactory, 65536, "Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract, 65536)]
class PackageDependencyContext final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.ApplicationModel.DynamicDependency.IPackageDependencyContextFactory), 1)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class PackageDependencyContext
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.ApplicationModel.DynamicDependency.IPackageDependencyContextFactory), 65536, "Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract), 65536)]
public sealed class PackageDependencyContext
function PackageDependencyContext(contextId)
Public NotInheritable Class PackageDependencyContext
Inheritance
Object Platform::Object IInspectable PackageDependencyContext
Attributes

Constructors

PackageDependencyContext(PackageDependencyContextId)

Creates a new instance of the PackageDependencyContext class based on the specified context ID.

Properties

ContextId

Gets the context ID of the resolved framework package dependency for the current context PackageDependencyContext object.

PackageDependencyId

Gets the ID of the resolved framework package dependency for the current context PackageDependencyContext object.

PackageFullName

Gets the package full name for the resolved framework package dependency for the current context PackageDependencyContext object.

Methods

Remove()

Removes a resolved package dependency from the current process' package graph (that is, a run-time reference for a framework package dependency that was added by using the PackageDependency.Add method).

Applies to

See also