ProvideRelatedFileAttribute 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 entri registri untuk meminta shell mengelola hubungan antara file berlapis dan induknya di penjelajah solusi
public ref class ProvideRelatedFileAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class ProvideRelatedFileAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ProvideRelatedFileAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideRelatedFileAttribute = class
inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ProvideRelatedFileAttribute = class
inherit RegistrationAttribute
Public NotInheritable Class ProvideRelatedFileAttribute
Inherits RegistrationAttribute
- Warisan
- Atribut
Konstruktor
ProvideRelatedFileAttribute(String, String) |
Create atribut ProvideRelatedFile baru |
Bidang
CSharpProjectGuid |
Panduan Sistem Proyek C# |
VisualBasicProjectGuid |
Panduan Sistem Proyek Visual Basic |
Properti
ChildExtension |
Ekstensi file anak |
FileOptions |
Opsi tentang bagaimana file terkait dikelola |
ParentExtension |
Ekstensi file induk |
ProjectSystem |
Sistem proyek yang didaftarkan generator kode ini |
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) |
Mendaftarkan sakelar baris perintah baru |
Unregister(RegistrationAttribute+RegistrationContext) |
Membatalkan pendaftaran sakelar baris perintah |