Method Fail
Fail(string)
Creates a new Alternet.Common.Result
for unsuccessful action.
public static Result Fail(string message)
Parameters
message
stringMessage describes reason of failure.
Returns
- Result
New
Alternet.Common.Result
object contains information about error.
Fail<T>(string)
Creates a new generic Alternet.Common.Result
for unsuccessful action.
public static Result<T> Fail<T>(string message)
Parameters
message
stringMessage describes reason of failure.
Returns
- Result<T>
New
Alternet.Common.Result
object contains information about error.
Type Parameters
T
Type of object related to the action.