ConversionResult.Failed(Exception) Method

Definition

Creates a new ConversionResult instance to represent a failed input conversion.

public static Microsoft.Azure.Functions.Worker.Converters.ConversionResult Failed (Exception exception);
static member Failed : Exception -> Microsoft.Azure.Functions.Worker.Converters.ConversionResult
Public Shared Function Failed (exception As Exception) As ConversionResult

Parameters

exception
Exception

The exception representing the cause of the failed conversion.

Returns

A new instance of ConversionResult to represent a failed input conversion.

Exceptions

Throws when the exception argument is null.

Applies to