AddPackageDependencyOptions 类

定义

定义在使用 PackageDependency.Add 方法将运行时引用添加到框架包时可以应用的选项。

public ref class AddPackageDependencyOptions sealed
/// [Windows.Foundation.Metadata.Activatable(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 AddPackageDependencyOptions final
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract, 65536)]
class AddPackageDependencyOptions final
[Windows.Foundation.Metadata.Activatable(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 AddPackageDependencyOptions
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.ApplicationModel.DynamicDependency.DynamicDependencyContract), 65536)]
public sealed class AddPackageDependencyOptions
function AddPackageDependencyOptions()
Public NotInheritable Class AddPackageDependencyOptions
继承
Object Platform::Object IInspectable AddPackageDependencyOptions
属性

构造函数

AddPackageDependencyOptions()

创建 AddPackageDependencyOptions 类的新实例。

属性

PrependIfRankCollision

调用 PackageDependency.Add 方法时,如果包图中存在多个包,其排名与 Rank 属性指定的级别相同,则此属性指示是否将解析的包添加到同一排名的其他包之前。

Rank

用于将解析的包添加到调用方包图的排名。

适用于

另请参阅