CodeGeneratorRegistrationAttribute Class

Definition

This attribute adds a custom file generator registry entry for specific file type. For Example: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Generators
{fae04ec1-301f-11d3-bf4b-00c04f79efbc}\MyGenerator] "CLSID"="{AAAA53CC-3D4F-40a2-BD4D-4F3419755476}" "GeneratesDesignTimeSource" = d'1'

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

Remarks

For example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Generators\{fae04ec1-301f-11d3-bf4b-00c04f79efbc}\MyGenerator]

"CLSID"="{AAAA53CC-3D4F-40a2-BD4D-4F3419755476}"

"GeneratesDesignTimeSource" = d'1'

Constructors

CodeGeneratorRegistrationAttribute(Type, String, String)

Creates a new CodeGeneratorRegistrationAttribute attribute to register a custom code generator for the provided context.

Properties

ContextGuid

Get the Guid representing the project type

GeneratesDesignTimeSource

Get or Set the GeneratesDesignTimeSource value

GeneratesSharedDesignTimeSource

Get or Set the GeneratesSharedDesignTimeSource value

GeneratorGuid

Get the Guid representing the generator type

GeneratorName

Gets the Generator name

GeneratorRegKeyName

Gets the Generator reg key name under

GeneratorType

Get the generator Type

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)

Called to register this attribute with the given context. The context contains the location where the registration information should be placed. It also contains other information such as the type being registered and path information.

Unregister(RegistrationAttribute+RegistrationContext)

Unregister this file extension.

Applies to