Share via


ProvideStaticToolboxItemAttribute 类

定义

此属性声明工具箱项,工具箱将从注册表中读取。 有关更多详细信息,请参阅 上的 IVsToolboxItemProvider 注释。

public ref class ProvideStaticToolboxItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideStaticToolboxItemAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideStaticToolboxItemAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideStaticToolboxItemAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideStaticToolboxItemAttribute
Inherits RegistrationAttribute
继承
ProvideStaticToolboxItemAttribute
属性

构造函数

ProvideStaticToolboxItemAttribute(String, String, String, String, String, String, Int32)

使用指定的数据初始化 的新 ProvideStaticToolboxItemAttribute 实例。

ProvideStaticToolboxItemAttribute(String, String, String, String, String, String, Int32, String, String, String, String)

使用多目标元数据初始化 的新 ProvideStaticToolboxItemAttribute 实例。

属性

AssemblyName

获取程序集名称。

BitmapIndex

获取位图索引。

BitmapResourceId

获取位图资源 ID。

Formats

获取格式。

GroupId

获取组 ID。

HelpKeyword

获取帮助关键字 (keyword) 。

Id

获取 ID。

Index

获取索引。

Name

获取名称。

SupportedFrameworks

获取支持的框架。

TargetedItemProvider

获取目标项提供程序。

TipComponentType

获取提示组件类型。

TipDescription

获取提示说明。

TipPublisher

获取小费发布者。

TipTitle

获取提示标题。

TipVersion

获取提示版本。

TransparentColor

获取颜色。

TypeId

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

(继承自 RegistrationAttribute)
TypeName

获取类型名称。

UseProjectTargetFrameworkVersionInTooltip

确定是否在工具提示中使用目标框架版本。

方法

GetPackageRegKeyPath(Guid)

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

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

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

Unregister(RegistrationAttribute+RegistrationContext)

删除注册数据。

适用于