ObjectReferenceService.TryGetObject(Guid, Object) Method

Definition

Obtains the actual reference to the object by its ObjectReference.

public:
 bool TryGetObject(Guid objectReferenceId, [Runtime::InteropServices::Out] System::Object ^ % obj);
public bool TryGetObject (Guid objectReferenceId, out object obj);
member this.TryGetObject : Guid * obj -> bool
Public Function TryGetObject (objectReferenceId As Guid, ByRef obj As Object) As Boolean

Parameters

objectReferenceId
Guid

The activity reference.

obj
Object

The de-referenced activity, if the reference is available, or null otherwise.

Returns

true if the actual reference to the object is obtained by the object reference; otherwise, false.

Applies to