SetCompletedEvent<T>

Method

Sets the completion event, same as setting the event using the completed property, but returns the operation itself.

Definition

public static T SetCompletedEvent<T>(this T operation, Action<T> callback) where T : SpatialAsyncOperation
public static T SetCompletedEvent<T>(this T operation, Action<T> callback) where T : SpatialAsyncOperation

Returns T

Parameters

ParameterDescription
T operation

SpatialAsyncOperation type

Action<T> callback

Callback function