ProtoElement Class
Represents the prototype class for an element.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Modeling.ProtoElementBase
Microsoft.VisualStudio.Modeling.ProtoElement
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class ProtoElement _
Inherits ProtoElementBase _
Implements ISerializable
[SerializableAttribute]
public sealed class ProtoElement : ProtoElementBase,
ISerializable
[SerializableAttribute]
public ref class ProtoElement sealed : public ProtoElementBase,
ISerializable
[<Sealed>]
[<SerializableAttribute>]
type ProtoElement =
class
inherit ProtoElementBase
interface ISerializable
end
public final class ProtoElement extends ProtoElementBase implements ISerializable
The ProtoElement type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ProtoElement(Guid) | Creates an instance of the ProtoElementBase class | |
ProtoElement(ModelElement) | Creates an instance of the ProtoElement class. |
Top
Properties
Name | Description | |
---|---|---|
DomainClassId | Get the Id of the domain class for this prototype element. (Inherited from ProtoElementBase.) | |
ElementId | Get the Id of the prototype element. (Inherited from ProtoElementBase.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetObjectData | Serializes object data into the SerializationInfo object. (Overrides ProtoElementBase.GetObjectData(SerializationInfo, StreamingContext).) | |
GetPropertyValue | Gets the value of the specified domain property. (Inherited from ProtoElementBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ReconstituteObject | Creates an element in the partition with the same attributes as the progenitor element (Overrides ProtoElementBase.ReconstituteObject(Dictionary<Guid, Guid>, Partition).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
A prototype is a compressed, serializable version of an element. A prototype is aware of what properties that element contains so that it can be deserialized into another store.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.