CodeGeneratorRegistrationAttribute CodeGeneratorRegistrationAttribute CodeGeneratorRegistrationAttribute CodeGeneratorRegistrationAttribute 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
type CodeGeneratorRegistrationAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class CodeGeneratorRegistrationAttribute
Inherits RegistrationAttribute
Inheritance
CodeGeneratorRegistrationAttributeCodeGeneratorRegistrationAttributeCodeGeneratorRegistrationAttributeCodeGeneratorRegistrationAttributeCodeGeneratorRegistrationAttribute
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) CodeGeneratorRegistrationAttribute(Type, String, String) CodeGeneratorRegistrationAttribute(Type, String, String) CodeGeneratorRegistrationAttribute(Type, String, String) CodeGeneratorRegistrationAttribute(Type, String, String)

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

Properties

ContextGuid ContextGuid ContextGuid ContextGuid ContextGuid

Get the Guid representing the project type

GeneratesDesignTimeSource GeneratesDesignTimeSource GeneratesDesignTimeSource GeneratesDesignTimeSource GeneratesDesignTimeSource

Get or Set the GeneratesDesignTimeSource value

GeneratesSharedDesignTimeSource GeneratesSharedDesignTimeSource GeneratesSharedDesignTimeSource GeneratesSharedDesignTimeSource GeneratesSharedDesignTimeSource

Get or Set the GeneratesSharedDesignTimeSource value

GeneratorGuid GeneratorGuid GeneratorGuid GeneratorGuid GeneratorGuid

Get the Guid representing the generator type

GeneratorName GeneratorName GeneratorName GeneratorName GeneratorName

Gets the Generator name

GeneratorRegKeyName GeneratorRegKeyName GeneratorRegKeyName GeneratorRegKeyName GeneratorRegKeyName

Gets the Generator reg key name under

GeneratorType GeneratorType GeneratorType GeneratorType GeneratorType

Get the generator Type

TypeId TypeId TypeId TypeId TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid)

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

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) 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(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext)

Unregister this file extension.

Applies to