SingleFileGeneratorSupportRegistrationAttribute Class

 

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

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.SingleFileGeneratorSupportRegistrationAttribute

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

NameDescription
System_CAPS_pubmethodSingleFileGeneratorSupportRegistrationAttribute(Type)

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

NameDescription
System_CAPS_pubpropertyProjectFactoryGuid

Gets the GUID representing the generator type.

System_CAPS_pubpropertyTypeId

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

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.

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: