PropertyPageTypeConverterAttribute 类
表示属性的类描述如何将属性页上的属性值在包。使用此属性而不是 TypeConverterAttribute。
继承层次结构
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.PropertyPageTypeConverterAttribute
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)
语法
声明
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Enum Or AttributeTargets.Property Or AttributeTargets.Field)> _
Public NotInheritable Class PropertyPageTypeConverterAttribute _
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field)]
public sealed class PropertyPageTypeConverterAttribute : Attribute
PropertyPageTypeConverterAttribute 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
PropertyPageTypeConverterAttribute | 创建类的新实例指定类型的。 |
页首
属性
名称 | 说明 | |
---|---|---|
ConverterType | 将转换的类型。 | |
TypeId | 当在派生类中实现时,获取该 Attribute 的唯一标识符。 (继承自 Attribute。) |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | 基础结构。返回一个值,该值指示此实例是否与指定的对象相等。 (继承自 Attribute。) | |
GetHashCode | 返回此实例的哈希代码。 (继承自 Attribute。) | |
GetType | 获取当前实例的 Type。 (继承自 Object。) | |
IsDefaultAttribute | 当在派生类中重写时,指示此实例的值是否是派生类的默认值。 (继承自 Attribute。) | |
Match | 当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。 (继承自 Attribute。) | |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
_Attribute.GetIDsOfNames | 将一组名称映射为对应的一组调度标识符。 (继承自 Attribute。) | |
_Attribute.GetTypeInfo | 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。 (继承自 Attribute。) | |
_Attribute.GetTypeInfoCount | 检索对象提供的类型信息接口的数量(0 或 1)。 (继承自 Attribute。) | |
_Attribute.Invoke | 提供对某一对象公开的属性和方法的访问。 (继承自 Attribute。) |
页首
备注
Visual Studio 包代码中查找此属性,而不是 TypeConverterAttribute,执行属性的类型转换在属性页中。
有关实现类型转换器的信息,请参见 如何:实现类型转换器。有关属性和元数据的信息,请参见 Attributes Overview 和 利用特性扩展元数据。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。