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