다음을 통해 공유


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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.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
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.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetObjectData Serializes object data into the SerializationInfo object. (Overrides ProtoElementBase.GetObjectData(SerializationInfo, StreamingContext).)
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.)
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