PresentationElementTypeDescriptionProvider 类

注意:此 API 现在已废弃不用。

PresentationElementTypeDescriptionProvider 提供封装 ModelElement 对象的包装类。 当属性网格要呈现 ModelElement 对象时,调用此类。

继承层次结构

System.Object
  System.ComponentModel.TypeDescriptionProvider
    Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptionProvider
      Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementTypeDescriptionProvider

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
<ObsoleteAttribute("This class is redundant and may be removed in a later version. Derive from ElementTypeDescriptor instead.",  _
    True)> _
Public Class PresentationElementTypeDescriptionProvider _
    Inherits ElementTypeDescriptionProvider
[ObsoleteAttribute("This class is redundant and may be removed in a later version. Derive from ElementTypeDescriptor instead.", 
    true)]
public class PresentationElementTypeDescriptionProvider : ElementTypeDescriptionProvider

PresentationElementTypeDescriptionProvider 类型公开以下成员。

构造函数

  名称 说明
公共方法 PresentationElementTypeDescriptionProvider

页首

方法

  名称 说明
受保护的方法 CreateCustomTypeDescriptor(ICustomTypeDescriptor, ModelElement) 提供 ICustomTypeDescriptor 的派生类可重写(不需要是 ElementTypeDescriptor)。基实现仅调用 CreateTypeDescriptor 创建 ElementTypeDescriptor。 (继承自 ElementTypeDescriptionProvider。)
受保护的方法 CreateCustomTypeDescriptor(ICustomTypeDescriptor, Type) 提供 ICustomTypeDescriptor 的派生类可重写(不需要是 ElementTypeDescriptor)。基实现仅调用 CreateTypeDescriptor 创建 ElementTypeDescriptor。 (继承自 ElementTypeDescriptionProvider。)
公共方法 CreateInstance 创建可以代替另一数据类型的对象。 (继承自 TypeDescriptionProvider。)
受保护的方法 CreatePresentationElementTypeDescriptor 为该属性网格创建新的 PresentationElementTypeDescriptor 以呈现该属性。从 PresentationElementTypeDescriptionProvider 中获取的类可重写此方法以提供他/她自己的类型描述符。
受保护的方法 CreateTypeDescriptor(ICustomTypeDescriptor, Type) 提供自定义类型说明符的派生类可重写。 (继承自 ElementTypeDescriptionProvider。)
受保护的方法 CreateTypeDescriptor(ICustomTypeDescriptor, ModelElement) 为 PresentationElement 提供一个自定义类型描述符。 (重写 ElementTypeDescriptionProvider.CreateTypeDescriptor(ICustomTypeDescriptor, ModelElement)。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetCache 获取每个对象均对应有的缓存,此缓存可作为键/值对的 IDictionary 进行访问。 (继承自 TypeDescriptionProvider。)
公共方法 GetExtendedTypeDescriptor 为给定的对象获取扩展的自定义类型说明符。 (继承自 TypeDescriptionProvider。)
受保护的方法 GetExtenderProviders 获取指定对象的扩展程序提供程序。 (继承自 TypeDescriptionProvider。)
公共方法 GetFullComponentName 获取指定的组件的名称,如果指定的组件没有名称,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。 (继承自 TypeDescriptionProvider。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetReflectionType(Type) 针对某个类型执行正常反射。 (继承自 TypeDescriptionProvider。)
公共方法 GetReflectionType(Object) 针对给定对象执行正常反射。 (继承自 TypeDescriptionProvider。)
公共方法 GetReflectionType(Type, Object) 针对具有给定类型的给定对象执行正常反射。 (继承自 TypeDescriptionProvider。)
公共方法 GetRuntimeType 将反射类型转换为运行时类型。 (继承自 TypeDescriptionProvider。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetTypeDescriptor(Type) 获取给定类型的自定义类型说明符。 (继承自 TypeDescriptionProvider。)
公共方法 GetTypeDescriptor(Object) 获取给定对象的自定义类型说明符。 (继承自 TypeDescriptionProvider。)
公共方法 GetTypeDescriptor(Type, Object) 获取给定类型和对象的自定义类型说明符。 (继承自 ElementTypeDescriptionProvider。)
公共方法 IsSupportedType 获取一个值,该值指示指定的类型是否与类型说明及其类型说明提供程序链兼容。 (继承自 TypeDescriptionProvider。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.Diagrams 命名空间