Method CreateCompletedOperationWithException
CreateCompletedOperationWithException<TObject>(TObject, Exception)
Creates an operation that has already completed with a specified result and error message./>.
선언
public AsyncOperationHandle<TObject> CreateCompletedOperationWithException<TObject>(TObject result, Exception exception)
파라미터
타입 | 이름 | 설명 |
---|---|---|
TObject | result | The result that the operation will provide. |
Exception | exception | The exception with an error message if the operation should be in the failed state. Otherwise null. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<TObject> | The operation handle used for the completed operation. |
타입 파라미터
이름 | 설명 |
---|---|
TObject | Object type. |