表示某个元素的原型类。
继承层次结构
System.Object
Microsoft.VisualStudio.Modeling.ProtoElementBase
Microsoft.VisualStudio.Modeling.ProtoElement
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
<SerializableAttribute> _
Public NotInheritable Class ProtoElement _
Inherits ProtoElementBase _
Implements ISerializable
[SerializableAttribute]
public sealed class ProtoElement : ProtoElementBase,
ISerializable
ProtoElement 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ProtoElement(Guid) | 创建 ProtoElementBase 类的实例 |
![]() |
ProtoElement(ModelElement) | 创建 ProtoElement 类的实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
DomainClassId | 获取此原型元素域类的 ID。 (继承自 ProtoElementBase。) |
![]() |
ElementId | 获取原型元素的 ID。 (继承自 ProtoElementBase。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetObjectData | 序列化对象数据到 SerializationInfo 对象。 (重写 ProtoElementBase.GetObjectData(SerializationInfo, StreamingContext)。) |
![]() |
GetPropertyValue | 获取指定域属性的值。 (继承自 ProtoElementBase。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
ReconstituteObject | 在用作原本元素的相同属性的分区中创建元素。 (重写 ProtoElementBase.ReconstituteObject(Dictionary<Guid, Guid>, Partition)。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
备注
原型是元素的 pack,序列化版本。 原型知道元素包含的属性,以便可以反序列化为其他存储区。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。