Partager via


PackageAttribute Class

Definition

Added to an INavigateToItemProviderFactory implementation to specify the package it depends on. The INavigateToItemProviderFactory will only be loaded if the specified package is loaded.

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
Inheritance
PackageAttribute
Attributes

Constructors

PackageAttribute(String)

Creates a new PackageAttribute.

Properties

Guid

The unique identifier of the dependency package.

Applies to