'Declaration<JetBrains.Annotations.NotNullAttribute()> Public Shared Function FromException( _ ByVal exception As Exception _ ) As OperationResult
'UsageDim exception As Exception Dim value As OperationResult value = OperationResult.FromException(exception)
[JetBrains.Annotations.NotNull()] public static OperationResult FromException( Exception exception )
[JetBrains.Annotations.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(Nothingin Visual Basic).
Return Value
null; the failed operation result otherwise.
This method never returns null (Nothing in Visual Basic).