PackageDependencyContext 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供有关使用 PackageDependency.Add 方法创建的已解析框架包依赖项的上下文信息。
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
- 继承
- 属性
构造函数
PackageDependencyContext(PackageDependencyContextId) |
基于指定的上下文 ID 创建 PackageDependencyContext 类的新实例。 |
属性
ContextId |
获取当前上下文 PackageDependencyContext 对象的已解析框架包依赖项的上下文 ID。 |
PackageDependencyId |
获取当前上下文 PackageDependencyContext 对象的已解析框架包依赖项的 ID。 |
PackageFullName |
获取当前上下文 PackageDependencyContext 对象的已解析框架包依赖项的包全名。 |
方法
Remove() |
从当前进程的包图中删除已解析的包依赖项, (即,使用 PackageDependency.Add 方法) 添加的框架包依赖项的运行时引用。 |