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) |
根據指定的內容識別碼,建立 PackageDependencyCoNtext 類別的新實例。 |
屬性
ContextId |
取得目前內容 PackageDependencyCoNtext 物件的已解析架構套件相依性的內容識別碼。 |
PackageDependencyId |
取得目前內容 PackageDependencyCoNtext 物件的已解析架構套件相依性識別碼。 |
PackageFullName |
取得目前內容 PackageDependencyCoNtext 物件的已解析架構套件相依性套件完整名稱。 |
方法
Remove() |
從目前進程的套件圖形中移除已解析的套件相依性, (也就是使用 PackageDependency.Add 方法新增之架構套件相依性的執行時間參考) 。 |