CodeGeneratorRegistrationAttribute Class
Adds a custom file generator registry entry for a specific file type.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.CodeGeneratorRegistrationAttribute
| Name | Description | |
|---|---|---|
![]() | CodeGeneratorRegistrationAttribute(Type, String, String) | Initializes a new instance of the CodeGeneratorRegistrationAttribute class. Creates a new CodeGeneratorRegistrationAttribute attribute to register a custom code generator for the provided context. |
| Name | Description | |
|---|---|---|
![]() | ContextGuid | Gets the GUID representing the project type. |
![]() | GeneratesDesignTimeSource | Gets or sets the GeneratesDesignTimeSource registry value. |
![]() | GeneratesSharedDesignTimeSource | Gets or sets the GeneratesSharedDesignTimeSource registry value. |
![]() | GeneratorGuid | Get the GUID representing the generator type. |
![]() | GeneratorName | Gets the generator name. |
![]() | GeneratorRegKeyName | Gets or sets the generator registry key name. |
![]() | GeneratorType | Gets the generator type. |
![]() | TypeId | Gets the current instance of this attribute.(Inherited from RegistrationAttribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object) | (Inherited from Attribute.) |
![]() | Register(RegistrationAttribute.RegistrationContext) | Registers this attribute with the given context.(Overrides RegistrationAttribute.Register(RegistrationAttribute.RegistrationContext).) |
![]() | ToString() | (Inherited from Object.) |
![]() | Unregister(RegistrationAttribute.RegistrationContext) | Unregisters the code generator with the given context.(Overrides RegistrationAttribute.Unregister(RegistrationAttribute.RegistrationContext).) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
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'
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



