SingleFileGeneratorSupportRegistrationAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type SingleFileGeneratorSupportRegistrationAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class SingleFileGeneratorSupportRegistrationAttribute
Inherits RegistrationAttribute
- Inheritance
- 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) |
Creates a new SingleFileGeneratorSupportRegistrationAttribute attribute to register a custom code generator for the provided context. |
Properties
ProjectFactoryGuid |
Get the Guid representing the generator type |
TypeId |
Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class. (Inherited from RegistrationAttribute) |
Methods
GetPackageRegKeyPath(Guid) |
Gets the registry path (relative to the registry root of the application) of the VSPackage. (Inherited from RegistrationAttribute) |
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 this file extension. |