CodeGeneratorRegistrationAttribute Class

 

Adds a custom file generator registry entry for a specific file type.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.CodeGeneratorRegistrationAttribute

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, 
	Inherited = true)]
public sealed class CodeGeneratorRegistrationAttribute : RegistrationAttribute

NameDescription
System_CAPS_pubmethodCodeGeneratorRegistrationAttribute(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.

NameDescription
System_CAPS_pubpropertyContextGuid

Gets the GUID representing the project type.

System_CAPS_pubpropertyGeneratesDesignTimeSource

Gets or sets the GeneratesDesignTimeSource registry value.

System_CAPS_pubpropertyGeneratesSharedDesignTimeSource

Gets or sets the GeneratesSharedDesignTimeSource registry value.

System_CAPS_pubpropertyGeneratorGuid

Get the GUID representing the generator type.

System_CAPS_pubpropertyGeneratorName

Gets the generator name.

System_CAPS_pubpropertyGeneratorRegKeyName

Gets or sets the generator registry key name.

System_CAPS_pubpropertyGeneratorType

Gets the generator type.

System_CAPS_pubpropertyTypeId

Gets the current instance of this attribute.(Inherited from RegistrationAttribute.)

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.

Return to top
Show: