ProvideProjectItemAttribute Class

Definition

This attribute registers items to be included in the Add New Item dialog for the specified project type. It is placed on a VSPackage.

public ref class ProvideProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideProjectItemAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
type ProvideProjectItemAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideProjectItemAttribute
Inherits RegistrationAttribute
Inheritance
ProvideProjectItemAttribute
Attributes

Constructors

ProvideProjectItemAttribute(Object, String, String, Int32)

Initializes a new instance of ProvideProjectItemAttribute for the item.

Properties

ItemType

Gets the name of this type of item.

Priority

Gets the sort priority of this type.

ProjectFactoryType

Gets the GUID of the type of project factory.

TemplateDir

Gets the directory in which the templates for this project type are found.

TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registers this item type.

Unregister(RegistrationAttribute+RegistrationContext)

Removes the registry key for this item type.

Applies to