ProvideProjectItemAttribute 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 mendaftarkan item yang akan disertakan dalam dialog Tambahkan Item Baru untuk jenis proyek yang ditentukan. Ini ditempatkan pada VSPackage.
public ref class ProvideProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideProjectItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideProjectItemAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideProjectItemAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideProjectItemAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Konstruktor
ProvideProjectItemAttribute(Object, String, String, Int32) |
Menginisialisasi instans ProvideProjectItemAttribute baru untuk item. |
Properti
ItemType |
String yang menjelaskan jenis item. String ini digunakan sebagai folder di sisi kiri dialog "Tambahkan Item Baru". |
Priority |
Mendapatkan prioritas pengurutan jenis ini. |
ProjectFactoryType |
Mendapatkan GUID dari jenis pabrik proyek. |
TemplateDir |
Mendapatkan direktori tempat templat untuk jenis proyek ini ditemukan. |
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) |
Mendaftarkan tipe item ini. |
Unregister(RegistrationAttribute+RegistrationContext) |
Batalkan pendaftaran editor ini. |