ProvideCodeGeneratorExtensionAttribute Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Penting
API ini bukan kompatibel CLS.
Kelas atribut untuk menyediakan pendaftaran generator kode terhadap ekstensi file tertentu
public ref class ProvideCodeGeneratorExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideCodeGeneratorExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
[System.CLSCompliant(false)]
public sealed class ProvideCodeGeneratorExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)]
public sealed class ProvideCodeGeneratorExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
[<System.CLSCompliant(false)>]
type ProvideCodeGeneratorExtensionAttribute = class
inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=false)>]
type ProvideCodeGeneratorExtensionAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideCodeGeneratorExtensionAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Keterangan
Harus diterapkan ke kelas paket, bukan generator. Atribut ini berfungsi selain ProvideCodeGenerator untuk menyiapkan dua hal a) Aplikasi default generator yang ditentukan ke file dengan ekstensi yang disediakan b) Benar bekerja dengan sistem proyek ASP.Net yang memerlukan ekstensi file untuk didaftarkan
Konstruktor
| ProvideCodeGeneratorExtensionAttribute(String, String) |
Konstruktor |
Bidang
| AspNetProjectSystemGuid |
GUID proyek aktual (dibandingkan dengan guid paket) untuk ASP.Net |
| CSharpProjectSystemGuid |
GUID proyek aktual (dibandingkan dengan paket Guid) untuk CSharp |
| VisualBasicProjectSystemGuid |
GUID proyek aktual (dibandingkan dengan guid paket) untuk Visual Basic |
Properti
| Extension |
Ekstensi untuk mengikat generator bernama ke |
| Name |
Nama generator untuk menambahkan ekstensi untuk |
| ProjectSystem |
Sistem proyek yang didaftarkan generator kode ini |
| ProjectSystemPackage |
Paket yang mengimplementasikan sistem proyek yang didaftarkan generator kode ini |
| TypeId |
Ambil alih properti TypeID untuk membiarkan 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 |