共用方式為


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

用來將已解析套件加入呼叫端套件圖形的排名。

適用於

另請參閱