Bagikan melalui


ProvideStaticToolboxGroupAttribute Kelas

Definisi

Atribut ini mendeklarasikan grup kotak alat yang akan dibuat pada inisialisasi kotak alat.

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

Keterangan

Grup dapat secara opsional berisi item yang dibuat dengan ProvideStaticToolboxItemAttribute.

Lihat komentar di IVsToolboxItemProvider vsshell100.idl untuk detail selengkapnya.

Konstruktor

ProvideStaticToolboxGroupAttribute(String, String)

Menginisialisasi instans ProvideStaticToolboxGroupAttributebaru .

Properti

Id

Mendapatkan ID grup.

Index

Mendapatkan indeks grup kotak alat.

Name

Mendapatkan nama grup kotak alat.

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.

Unregister(RegistrationAttribute+RegistrationContext)

Menghapus data pendaftaran.

Berlaku untuk