Bagikan melalui


ProvideCodeGeneratorAttribute Kelas

Definisi

Penting

API ini bukan kompatibel CLS.

Kelas atribut untuk menyediakan pendaftaran generator kode

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
Warisan
ProvideCodeGeneratorAttribute
Atribut

Keterangan

Harus diterapkan ke kelas paket itu sendiri, bukan generator.

Konstruktor

ProvideCodeGeneratorAttribute(Type, String, String, Boolean)

Konstruktor

Bidang

AspNetProjectGuid

Guid paket ASP.Net Project System

CSharpProjectGuid

Guid paket C# Project System

VisualBasicProjectGuid

Guid paket Visual Basic Project System

Properti

Description

Deskripsi generator ini yang dapat dibaca manusia

GeneratesDesignTimeSource

Apakah akan menandai generator kode ini sebagai menyediakan kode sumber waktu desain

Name

Nama generator ini

ProjectSystem

Sistem proyek yang didaftarkan generator kode ini

RegisterCodeBase

Apakah mendaftarkan generator menggunakan basis kode atau tidak

Type

Jenis yang mengimplementasikan Generator Kode

TypeId

Ambil alih properti TypeID untuk memungkinkan RegistrationAttribute memperoleh kelas untuk bekerja dengan System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut yang berasal dari atribut ini harus mengambil alih properti ini hanya jika membutuhkan kontrol yang lebih baik pada instans yang dapat diterapkan ke kelas.

(Diperoleh dari RegistrationAttribute)

Metode

GetPackageRegKeyPath(Guid)

Mendapatkan jalur registri (relatif terhadap akar registri aplikasi) dari VSPackage.

(Diperoleh dari RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Daftarkan generator ini

Unregister(RegistrationAttribute+RegistrationContext)

Menghapus kunci yang ditentukan

Berlaku untuk