Bagikan melalui


ProvideDesignerOptionsAttribute Kelas

Definisi

Mengaitkan satu atau beberapa kategori dengan setiap perancang dalam registri.

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

Konstruktor

ProvideDesignerOptionsAttribute(String)

Menginisialisasi instans ProvideDesignerOptionsAttribute baru dengan nama kategori yang ditentukan.

Properti

CategoryName

Mendapatkan nama terprogram dan nonlokalisasi untuk kategori 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 opsi perancang.

Unregister(RegistrationAttribute+RegistrationContext)

Menghapus atribut ini dari registri menggunakan konteks registri yang ditentukan.

Berlaku untuk