'Declaration
<NotNullAttribute()> Public Shared Function PerformOperation(Of TOperationException As OperationException)( _ ByVal operation As Action _ ) As OperationResult
'Usage
Dim operation As Action Dim value As OperationResult value = OperationResult.PerformOperation(Of TOperationException)(operation)
[NotNull()] public static OperationResult PerformOperation<TOperationException>( Action operation ) where TOperationException: OperationException
[NotNull()] public: static OperationResult^ PerformOperationgeneric<typename TOperationException> ( Action^ operation ) where TOperationException: OperationException
Parameters
- operation
- The operation to perform.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Type Parameters
- TOperationException
- The type of operation exception to catch.
Return Value
This method never returns null
(Nothing
in Visual Basic).