ProvideGeneratorAttribute Třída

Definice

Zaregistruje daný generátor kódu pro projekty Jazyka Visual Basic a Visual C# při přidání do Packageodvozené třídy nebo třídy, která implementuje 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
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideGeneratorAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideGeneratorAttribute
Inherits RegistrationAttribute
Dědičnost
ProvideGeneratorAttribute
Atributy

Konstruktory

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

Inicializuje novou instanci ProvideGeneratorAttribute pro daný balíček a generátor.

Vlastnosti

Description

Získá popis generátoru.

GenerateDesignTimeSource

Získá, zda je zdrojový kód vygenerován pro použití v době návrhu.

GeneratorType

Získá typ generátoru kódu.

Name

Získá název generátoru.

PackageGuid

Získá identifikátor GUID balíčku obsahujícího projekt, který podporuje vyvolání tohoto generátoru.

TypeId

Přepište vlastnost TypeID, aby mohly odvozené třídy RegistrationAttribute pracovat s System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto bude muset přepsat tuto vlastnost pouze v případě, že potřebuje lepší kontrolu nad instancemi, které lze použít na třídu.

(Zděděno od RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Získá cestu registru (vzhledem k kořenovému adresáři registru aplikace) VSPackage.

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Zaregistruje tento atribut s daným kontextem.

Unregister(RegistrationAttribute+RegistrationContext)

Odebere informace o registraci balíčku VSPackage při zavolání externím nástrojem pro registraci, jako je regpkg.exe. Další informace najdete v tématu Registrace balíčků VSPackages.

Platí pro