'Declaration
<NotNullAttribute()> Public Shared Function FromException( _ ByVal exception As Exception _ ) As OperationResult
'Usage
Dim exception As Exception Dim value As OperationResult value = OperationResult.FromException(exception)
[NotNull()] public static OperationResult FromException( Exception exception )
[NotNull()] public: static OperationResult^ FromException( Exception^ exception )
Parameters
- exception
- Information about the reason of the failure of the operation.
Return Value
The successful operation result when exception is
null
; the failed operation result otherwise.