ProvideProjectFactoryAttribute Class

Definition

ProvideProjectFactoryAttribute declares that a package provides a project factory.

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

Remarks

A single VSPackage can provide multiple project factories. If a VSPackage declares that it provides a project factory, it should create the factory and offer it to Visual Studio in the Initialize method of the Package-derived class.

Constructors

ProvideProjectFactoryAttribute(Type, String, String, String, String, String)

Initializes a new instance of ProvideProjectFactoryAttribute.

Properties

DefaultProjectExtension

Gets the default extension of the project file.

DisableOnlineTemplates

Determines whether to disable online templates.

DisplayProjectFileExtensions

Gets the resource ID for project file extensions.

DisplayProjectTypeVsTemplate

Gets or sets the Visual Studio template for the project.

FactoryType

Gets the type of the project factory.

FolderGuid

Gets or sets the GUID of the folder for this type of project.

LanguageVsTemplate

Gets and sets the Visual Studio language template.

Name

Gets the name of the type of project.

NewProjectRequireNewFolderVsTemplate

Gets or sets whether this type of project requires a Visual Studio template that creates a new folder.

PossibleProjectExtensions

Gets the set of possible project extensions.

ProjectSubTypeVsTemplate

Gets or sets the Visual Studio template for the project subtype.

ProjectTemplatesDirectory

Gets the project templates directory.

ShowOnlySpecifiedTemplatesVsTemplate

Gets or sets the Visual Studio template to be shown in the New Project dialog.

SortPriority

Gets or sets the order in which projects are displayed in the New Project dialog.

TemplateGroupIDsVsTemplate

Gets or sets the Visual Studio template's group ID.

TemplateIDsVsTemplate

Gets or sets the Visual Studio template ID.

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 attribute.

Unregister(RegistrationAttribute+RegistrationContext)

Removes the key for this attribute from the registry.

Applies to