Skip to content

M_RailwaySharp_ErrorHandling_Result_Succeed__2_1

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

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

Creates a Success result with the given value and the given messages.

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

Syntax

C#

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

VB

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

C++

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

F#

static member Succeed : 
        value : 'TSuccess * 
        messages : IEnumerable<'TMessage> -> Result<'TSuccess, 'TMessage> 

Parameters

 

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

Type Parameters

 

TSuccess
TMessage

Return Value

Type: Result(TSuccess, TMessage)

See Also

Reference

Result Class
Succeed Overload
RailwaySharp.ErrorHandling Namespace

Clone this wiki locally