EditorFactoryNotifyForProjectAttribute 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.
Atribut ini menambahkan Ekstensi File untuk Sistem Proyek sehingga Proyek akan memanggil metode IVsEditorFactoryNotify saat item jenis ini ditambahkan atau diganti namanya.
public ref class EditorFactoryNotifyForProjectAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class EditorFactoryNotifyForProjectAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class EditorFactoryNotifyForProjectAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type EditorFactoryNotifyForProjectAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class EditorFactoryNotifyForProjectAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Keterangan
Misalnya: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\ {F184B08F-C81C-45F6-A57F-5ABD9991F28F}\FileExtensions\.addin] "EditorFactoryNotify"="{FA3CD31E-987B-443A-9B81-186104E8DAC1}"
Konstruktor
EditorFactoryNotifyForProjectAttribute(Object, String, Object) |
Membuat atribut ProvideEditorFactoryNotifyForProject baru untuk mendaftarkan ekstensi file dengan proyek. |
Properti
FactoryType |
Dapatkan Guid yang mewakili jenis pabrik editor |
FileExtension |
Dapatkan atau Atur ekstensi file XML yang mendukung tampilan ini |
ProjectType |
Dapatkan Guid yang mewakili jenis proyek |
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) |
Dipanggil untuk mendaftarkan atribut ini dengan konteks yang diberikan. Konteks berisi lokasi tempat informasi pendaftaran harus ditempatkan. Ini juga berisi informasi lain seperti jenis yang didaftarkan dan informasi jalur. |
Unregister(RegistrationAttribute+RegistrationContext) |
Batalkan pendaftaran ekstensi file ini. |