Interface IResult
Interface representing the result of an operation.
Namespace: Tableau.Migration
Assembly: Tableau.Migration.dll
Syntax
public interface IResult
Properties
Errors
Gets any exceptions encountered during the operation.
Declaration
IImmutableList<Exception> Errors { get; }
Property Value
| Type | Description |
|---|---|
| IImmutableList<Exception> |
Success
Gets whether the operation was successful.
Declaration
bool Success { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
CastFailure<U>()
Casts a failure result to another type.
Declaration
IResult<U> CastFailure<U>() where U : class
Returns
| Type | Description |
|---|---|
| IResult<U> | The casted result. |
Type Parameters
| Name | Description |
|---|---|
| U | The type to cast to. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | If the result is not a failure result. |