'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.
The value of this parameter can be
null
(Nothing
in Visual Basic).
Return Value
null
; the failed operation result otherwise.
This method never returns null
(Nothing
in Visual Basic).