Skip to content

M_RailwaySharp_ErrorHandling_Result_FailWith__2

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Result.FailWith(TSuccess, TMessage) Method (IEnumerable(TMessage))

Creates a Failure result with the given messages.

Namespace: RailwaySharp.ErrorHandling
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static Result<TSuccess, TMessage> FailWith<TSuccess, TMessage>(
	IEnumerable<TMessage> messages
)

VB

Public Shared Function FailWith(Of TSuccess, TMessage) ( 
	messages As IEnumerable(Of TMessage)
) As Result(Of TSuccess, TMessage)

C++

public:
generic<typename TSuccess, typename TMessage>
static Result<TSuccess, TMessage>^ FailWith(
	IEnumerable<TMessage>^ messages
)

F#

static member FailWith : 
        messages : IEnumerable<'TMessage> -> Result<'TSuccess, 'TMessage> 

Parameters

 

messages
Type: System.Collections.Generic.IEnumerable(TMessage)

Type Parameters

 

TSuccess
TMessage

Return Value

Type: Result(TSuccess, TMessage)

See Also

Reference

Result Class
FailWith Overload
RailwaySharp.ErrorHandling Namespace

Clone this wiki locally