PackageAttribute 类

定义

添加到 INavigateToItemProviderFactory 实现,以指定它所依赖的包。 INavigateToItemProviderFactory仅当加载指定的包时才会加载。

public ref class PackageAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public sealed class PackageAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type PackageAttribute = class
    inherit Attribute
Public NotInheritable Class PackageAttribute
Inherits Attribute
继承
PackageAttribute
属性

构造函数

PackageAttribute(String)

创建一个新的 PackageAttribute

属性

Guid

依赖项包的唯一标识符。

适用于