ObjectReferenceService Class

Definition

This interface is used by Visual Studio integration to acquire an AppDomain serialization friendly reference to an object.

public sealed class ObjectReferenceService
Inheritance
ObjectReferenceService

Constructors

ObjectReferenceService(EditingContext)

Initializes a new instance of the ObjectReferenceService class with a specified editing context.

Methods

AcquireObjectReference(Int32, Int32, Int32, Int32)

Acquires a reference by the SourceLocation of the object and this method will automatically register the object to listen to SourceLocationUpdatedEvent, if available.

AcquireObjectReference(Object)

Acquires a reference of an object by its actual reference.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ReleaseObjectReference(Guid)

Allows the designer infrastructure to release the actual reference to the activity and avoids memory leak.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetObject(Guid, Object)

Obtains the actual reference to the object by its ObjectReference.

Events

SourceLocationUpdated

Occurs when the source location for the object changes.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1