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
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
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

String describing the item type. This string is used as the folder in the left side of the "Add New Items" dialog.

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

Gets the current instance of this attribute.

(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)

Unregister this editor.

Applies to