ProvideEditorUIContextAttribute 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.
Mengaitkan UIContext dengan pabrik editor tertentu. Editor hanya dapat dibuat ketika UIContext aktif.
public ref class ProvideEditorUIContextAttribute : Microsoft::VisualStudio::Shell::ProvideEditorAttributeBase
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideEditorUIContextAttribute : Microsoft.VisualStudio.Shell.ProvideEditorAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorUIContextAttribute = class
inherit ProvideEditorAttributeBase
Public Class ProvideEditorUIContextAttribute
Inherits ProvideEditorAttributeBase
- Warisan
- Atribut
Konstruktor
ProvideEditorUIContextAttribute(Object, Object) |
Menginisialisasi instans ProvideEditorUIContextAttribute |
Properti
Factory |
Panduan pabrik editor. (Diperoleh dari ProvideEditorAttributeBase) |
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) |
UIContext |
UIContext untuk dikaitkan dengan editor |
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 seperti jenis yang didaftarkan, dan informasi jalur. Metode ini dipanggil baik untuk pendaftaran maupun tidak registrasi. Perbedaannya adalah bahwa membatalkan pendaftaran hanya menggunakan sarang yang membalikkan perubahan yang diterapkan padanya. |
Unregister(RegistrationAttribute+RegistrationContext) |
Batalkan pendaftaran editor ini. |