다음을 통해 공유


ProtoLink Class

Contains the information needed to recreate an ElementLink in any store.

Inheritance Hierarchy

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

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 ProtoLink _
    Inherits ProtoElementBase _
    Implements ISerializable, IDeserializationCallback
[SerializableAttribute]
public sealed class ProtoLink : ProtoElementBase, 
    ISerializable, IDeserializationCallback
[SerializableAttribute]
public ref class ProtoLink sealed : public ProtoElementBase, 
    ISerializable, IDeserializationCallback
[<Sealed>]
[<SerializableAttribute>]
type ProtoLink =  
    class 
        inherit ProtoElementBase 
        interface ISerializable 
        interface IDeserializationCallback 
    end
public final class ProtoLink extends ProtoElementBase implements ISerializable, IDeserializationCallback

The ProtoLink type exposes the following members.

Constructors

  Name Description
Public method ProtoLink Creates an instance of the ProtoLink 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 Puts object data into the serialization data transfer object (Overrides ProtoElementBase.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetPropertyValue Gets the value of the specified domain property. (Inherited from ProtoElementBase.)
Public method GetRolePlayerId Gets the Guid idenitifier of the ProtoElement playing the specified domain role in this ProtoLink.
Public method GetRolePlayerMonikerId Gets the Guid idenitifier of the moniker playing the specified domain role in this ProtoLink.
Public method GetSourceRolePlayer
Public method GetTargetRolePlayer
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ReconstituteObject Recreate the ElementLink in the indicated store (Overrides ProtoElementBase.ReconstituteObject(Dictionary<Guid, Guid>, Partition).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IDeserializationCallback.OnDeserialization Deserialize the object when the graph is fully loaded

Top

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