ProvideGeneratorAttribute Class

Definition

Registers the given code generator for Visual Basic and Visual C# projects when added to a Package-derived class or a class that implements IVsPackage.

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

Constructors

ProvideGeneratorAttribute(Type, String, String, String, Boolean)

Initializes a new instance of ProvideGeneratorAttribute for the given package and generator.

Properties

Description

Gets the description of the generator.

GenerateDesignTimeSource

Gets whether source code is generated for use at design time.

GeneratorType

Gets the type of the code generator.

Name

Gets the name of the generator.

PackageGuid

Gets the GUID of the package containing a project that supports invoking this 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)

Registers this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext)

Removes the registration information about a VSPackage when called by an external registration tool like regpkg.exe. For more information, see Registering VSPackages.

Applies to