Freigeben über


ProtoElementBase Class

Represents the prototype for the element.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public MustInherit Class ProtoElementBase _
    Implements ISerializable
[SerializableAttribute]
public abstract class ProtoElementBase : ISerializable
[SerializableAttribute]
public ref class ProtoElementBase abstract : ISerializable
[<AbstractClass>]
[<SerializableAttribute>]
type ProtoElementBase =  
    class
        interface ISerializable
    end
public abstract class ProtoElementBase implements ISerializable

The ProtoElementBase type exposes the following members.

Constructors

  Name Description
Protected method ProtoElementBase(Guid) Creates an instance of the ProtoElementBase class for a given domainClassId. This mode is used to determine whether the given DomainClassInfo type can be merged under any given model element.
Protected method ProtoElementBase(ModelElement) Creates an instance of the ProtoElementBase class.
Protected method ProtoElementBase(SerializationInfo, StreamingContext) Creates an instance of the ProtoElementBase class.

Top

Properties

  Name Description
Public property DomainClassId Get the Id of the domain class for this prototype element.
Public property ElementId Get the Id of the prototype element.

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.
Protected method GetPropertyAssignments Get the AttributeAssignements for the progenitor element's attributes
Public method GetPropertyValue Gets the value of the specified domain property.
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
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 monitors what properties an element contains so that the prototype can be deserialized into another store. You can use a prototype to create an element in any 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