CreatePackageDependencyOptions 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义使用 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
- 继承
- 属性
构造函数
CreatePackageDependencyOptions() |
创建 CreatePackageDependencyOptions 类的新实例。 |
属性
Architectures |
获取或设置未打包应用依赖的框架包的处理器体系结构。 |
LifetimeArtifact |
如果 LifetimeArtifactKind 属性设置为 PackageDependencyLifetimeArtifactKind.FilePath 或 PackageDependencyLifetimeArtifactKind.RegistryKey,则获取或设置用于定义包依赖项生存期的项目的名称。 |
LifetimeArtifactKind |
获取或设置用于定义包依赖项生存期的项目类型。 |
VerifyDependencyResolution |
获取或设置一个值,该值指示在固定包依赖项时是否禁用依赖项解析。 这对于作为目标用户以外的用户上下文运行的安装程序非常有用 (例如,作为 LocalSystem) 运行的安装程序。 |