SingleFileGeneratorSupportRegistrationAttribute Class

Definition

Creates the ProjectTypeGuid key under $RegRoot$\Generators. This registration attribute is used by project systems that support single file generators.

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

Remarks

It is the project’s responsibility to make sure the ProjectTypeGuid key is created. Then clients of particular file types who implement an actual single file generator are responsible for registering their single file generators under the project’s subkey of the “Generators” key. Clients that implement a particular single file generator use the CodeGeneratorRegistrationAttribute for this purpose.

Constructors

SingleFileGeneratorSupportRegistrationAttribute(Type)

Initializes a new instance of the SingleFileGeneratorSupportRegistrationAttribute class to register a custom code generator.

Properties

ProjectFactoryGuid

Gets the GUID representing the generator type.

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 with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Unregisters this attribute.

Applies to