'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.
Type Parameters
- TOperationException
- The type of operation exception to catch.
Return Value
Returns the operation result for the performed operation.