ProvideCodeGeneratorAttribute Class

Definition

Important

This API is not CLS-compliant.

Attribute class to provide registration of a code generator

C++/CX
public ref class ProvideCodeGeneratorAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
Inheritance
ProvideCodeGeneratorAttribute
Attributes

Remarks

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

Constructors

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

Tuote Versiot
Visual Studio SDK 2015, 2017, 2019, 2022