WebSiteProjectAttribute 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 ProjectSubType ke daftar exisiting yang ditentukan dari ProjectSubTypes untuk Proyek Situs Web
public ref class WebSiteProjectAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class WebSiteProjectAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class WebSiteProjectAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type WebSiteProjectAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class WebSiteProjectAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Keterangan
Misalnya: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\(*version*)\Projects\ {E24C65DC-7377-472B-9ABA-BC803B73C61A}\ProjectSubType(VsTemplate)\IronPython "Default"="Iron Python" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0Exp\NewProjectTemplates\TemplateDirs\{39c9c826-8ef8-4079-8c95-428f5b1c323f}\IronPython] @="Iron Python" "NewProjectDialogExOnly"=dword:00000001 "SortPriority"=dword:0000012c "TemplatesDir"="D:\\Program Files\\Microsoft Visual Studio 8\\Web\\\\WebProjects\\IronPython" "DeveloperActivity"="IronPython"
Konstruktor
WebSiteProjectAttribute(String, String) |
Membuat atribut WebSiteProjectAttribute baru untuk mendaftarkan bahasa dengan proyek situs web |
Properti
LanguageID |
Mendapatkan ID Bahasa yang sedang dirujuk dari vstemplate |
LanguageName |
Mendapatkan Nama Bahasa yang muncul dalam dialog tambahkan Situs Web baru di bawah daftar bahasa |
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 languageID ini |