Bagikan melalui


ProvideEditorFactoryAttribute Kelas

Definisi

Atribut ini menyatakan bahwa VSPackage menyediakan pabrik editor.

public ref class ProvideEditorFactoryAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideEditorFactoryAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideEditorFactoryAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorFactoryAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideEditorFactoryAttribute
Inherits RegistrationAttribute
Warisan
ProvideEditorFactoryAttribute
Atribut

Keterangan

Beberapa pabrik editor dapat dikaitkan dengan VSPackage yang sama.

Konstruktor

ProvideEditorFactoryAttribute(Type, Int16)

Konstruktor ini membuat objek baru ProvideEditorFactoryAttribute .

ProvideEditorFactoryAttribute(Type, Int16, Boolean)

Atribut ini menyatakan bahwa VSPackage menyediakan pabrik editor.

Properti

CommonPhysicalViewAttributes

Mendapatkan atau mengatur default __VSPHYSICALVIEWATTRIBUTES untuk tampilan fisik yang didukung oleh editor. Setiap tampilan fisik yang tidak tercantum dalam sub-kunci PhysicalViewAttributes menggunakan atribut ini.

DeferUntilIntellisenseIsReady

Atribut ini menyatakan bahwa VSPackage menyediakan pabrik editor.

FactoryType

Mendapatkan jenis pabrik editor.

NameResourceID

Mendapatkan ID sumber daya.

TrustLevel

Mendapatkan atau mengatur tingkat kepercayaan untuk editor.

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)

Dipanggil untuk mendaftarkan atribut ini dengan konteks yang diberikan.

Unregister(RegistrationAttribute+RegistrationContext)

Dipanggil untuk membatalkan pendaftaran atribut ini dengan konteks yang diberikan.

Berlaku untuk