SingleFileGeneratorSupportRegistrationAttribute SingleFileGeneratorSupportRegistrationAttribute SingleFileGeneratorSupportRegistrationAttribute SingleFileGeneratorSupportRegistrationAttribute SingleFileGeneratorSupportRegistrationAttribute 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\ [proj_fac_guid]

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

Remarks

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.

Constructors

SingleFileGeneratorSupportRegistrationAttribute(Type) SingleFileGeneratorSupportRegistrationAttribute(Type) SingleFileGeneratorSupportRegistrationAttribute(Type) SingleFileGeneratorSupportRegistrationAttribute(Type) SingleFileGeneratorSupportRegistrationAttribute(Type)

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

Properties

ProjectFactoryGuid ProjectFactoryGuid ProjectFactoryGuid ProjectFactoryGuid ProjectFactoryGuid

Get the Guid representing 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