共用方式為


CreatePackageDependencyOptions 類別

定義

定義使用 PackageDependency.Create 方法建立架構套件安裝時間參考時可套用的準則。 這會通知 OS 您的未封裝應用程式相依于符合指定準則的架構套件。

public ref class CreatePackageDependencyOptions 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 CreatePackageDependencyOptions 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 CreatePackageDependencyOptions 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 CreatePackageDependencyOptions
[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 CreatePackageDependencyOptions
function CreatePackageDependencyOptions()
Public NotInheritable Class CreatePackageDependencyOptions
繼承
Object Platform::Object IInspectable CreatePackageDependencyOptions
屬性

建構函式

CreatePackageDependencyOptions()

建立 CreatePackageDependencyOptions 類別的新實例。

屬性

Architectures

取得或設定未封裝應用程式相依性所在架構套件的處理器架構。

LifetimeArtifact

如果 LifetimeArtifactKind 屬性設定為 PackageDependencyLifetimeArtifactKind.FilePathPackageDependencyLifetimeArtifactKind.RegistryKey,則取得或設定用來定義封裝相依性存留期的成品名稱。

LifetimeArtifactKind

取得或設定要用來定義封裝相依性存留期的成品類型。

VerifyDependencyResolution

取得或設定值,這個值表示是否要在釘選套件相依性時停用相依性解析。 這適用于以目標使用者 (以外的使用者內容執行的安裝程式,例如,以 LocalSystem) 執行安裝程式。

適用於

另請參閱