Share via


ProvideStaticToolboxGroupAttribute 类

定义

此属性声明将在工具箱初始化时创建的工具箱组。

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
继承
ProvideStaticToolboxGroupAttribute
属性

注解

组可以选择包含使用 ProvideStaticToolboxItemAttribute创建的项。

有关更多详细信息,请参阅 vsshell100.idl 中的 上的 IVsToolboxItemProvider 注释。

构造函数

ProvideStaticToolboxGroupAttribute(String, String)

初始化 ProvideStaticToolboxGroupAttribute 的新实例。

属性

Id

获取组 ID。

Index

获取工具箱组的索引。

Name

获取工具箱组的名称。

TypeId

重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文注册此属性。

Unregister(RegistrationAttribute+RegistrationContext)

删除注册数据。

适用于