Udostępnij za pośrednictwem


ProvideCodeGeneratorAttribute Klasa

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Klasa atrybutu w celu zapewnienia rejestracji generatora kodu

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
Dziedziczenie
ProvideCodeGeneratorAttribute
Atrybuty

Uwagi

Należy zastosować do samej klasy pakietu, a nie generatora.

Konstruktory

ProvideCodeGeneratorAttribute(Type, String, String, Boolean)

Konstruktor

Pola

AspNetProjectGuid

Identyfikator GUID pakietu ASP.Net Project System

CSharpProjectGuid

Identyfikator GUID pakietu systemu projektu w języku C#

VisualBasicProjectGuid

Identyfikator GUID pakietu systemu projektu Visual Basic

Właściwości

Description

Czytelny opis tego generatora

GeneratesDesignTimeSource

Czy oznaczyć ten generator kodu jako kod źródłowy czasu projektowania

Name

Nazwa tego generatora

ProjectSystem

System projektu zarejestrowany w tym generatorze kodu

RegisterCodeBase

Czy zarejestrować generator przy użyciu bazy kodu

Type

Typ implementowania generatora kodu

TypeId

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z elementem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tej właściwości będzie musiał zastąpić tę właściwość tylko wtedy, gdy potrzebuje lepszej kontroli nad wystąpieniami, które można zastosować do klasy.

(Odziedziczone po RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Pobiera ścieżkę rejestru (względem katalogu głównego rejestru aplikacji) pakietu VSPackage.

(Odziedziczone po RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Zarejestruj ten generator

Unregister(RegistrationAttribute+RegistrationContext)

Usuń nasze określone klucze

Dotyczy