PackageDependencyContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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). |