Share via


ProvideCodeGeneratorAttribute Class

Definition

Important

This API is not CLS-compliant.

Attribute class to provide registration of a code generator

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

Remarks

Should be applied to the package class itself, not the generator.

Constructors

ProvideCodeGeneratorAttribute(Type, String, String, Boolean)

Constructor

Fields

AspNetProjectGuid

Guid of the ASP.Net Project System package

CSharpProjectGuid

Guid of the C# Project System package

VisualBasicProjectGuid

Guid of the Visual Basic Project System package

Properties

Description

A human readable description of this generator

GeneratesDesignTimeSource

Whether to flag this code generator as providing design-time source code

Name

The name of this generator

ProjectSystem

The project system that this code generator is registered with

RegisterCodeBase

Whether or not to register the generator using a codebase

Type

The type implementing the Code Generator

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)

Register this generator

Unregister(RegistrationAttribute+RegistrationContext)

Delete our specified keys

Applies to