Επεξεργασία

Κοινή χρήση μέσω


ObjectReferenceService.AcquireObjectReference Method

Definition

Acquires an actual reference of an object.

Overloads

AcquireObjectReference(Object)

Acquires a reference of an object by its actual reference.

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.

public:
 Guid AcquireObjectReference(System::Object ^ obj);
public Guid AcquireObjectReference (object obj);
member this.AcquireObjectReference : obj -> Guid
Public Function AcquireObjectReference (obj As Object) As Guid

Parameters

obj
Object

The object which we need to acquire a reference for.

Returns

A reference of an object.

Applies to

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.

public:
 Guid AcquireObjectReference(int startLine, int startColumn, int endLine, int endColumn);
public Guid AcquireObjectReference (int startLine, int startColumn, int endLine, int endColumn);
member this.AcquireObjectReference : int * int * int * int -> Guid
Public Function AcquireObjectReference (startLine As Integer, startColumn As Integer, endLine As Integer, endColumn As Integer) As Guid

Parameters

startLine
Int32

The start line of the object.

startColumn
Int32

The start column of the object.

endLine
Int32

The end line of the object.

endColumn
Int32

The end column of the object.

Returns

A reference by the SourceLocation of the object.

Applies to