ProtoElement Class

Represents the prototype class for an element.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.ProtoElementBase
    Microsoft.VisualStudio.Modeling.ProtoElement

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

声明
<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
Public method ProtoElement(Guid) Creates an instance of the ProtoElementBase class
Public method ProtoElement(ModelElement) Creates an instance of the ProtoElement class.

Top

Properties

  Name Description
Public property DomainClassId Get the Id of the domain class for this prototype element. (Inherited from ProtoElementBase.)
Public property ElementId Get the Id of the prototype element. (Inherited from ProtoElementBase.)

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Serializes object data into the SerializationInfo object. (Overrides ProtoElementBase.GetObjectData(SerializationInfo, StreamingContext).)
Protected method GetPropertyAssignments Get the AttributeAssignements for the progenitor element's attributes (Inherited from ProtoElementBase.)
Public method GetPropertyValue Gets the value of the specified domain property. (Inherited from ProtoElementBase.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReconstituteObject Creates an element in the partition with the same attributes as the progenitor element (Overrides ProtoElementBase.ReconstituteObject(Dictionary<Guid, Guid>, Partition).)
Public method 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.

See Also

Reference

Microsoft.VisualStudio.Modeling Namespace