'Declaration<JetBrains.Annotations.NotNullAttribute()> Public Function ToNotNullValueResult(Of TValue)( _ ByVal exceptionTransformingFunction As Func(Of Exception,Exception), _ ByVal getOperationArgumentsFunction As Func(Of OperationArguments) _ ) As ValueResult(Of TValue)
'UsageDim instance As UAAttributeDataResult Dim exceptionTransformingFunction As Func(Of Exception,Exception) Dim getOperationArgumentsFunction As Func(Of OperationArguments) Dim value As ValueResult(Of TValue) value = instance.ToNotNullValueResult(Of TValue)(exceptionTransformingFunction, getOperationArgumentsFunction)
[JetBrains.Annotations.NotNull()] public ValueResult<TValue> ToNotNullValueResult<TValue>( Func<Exception,Exception> exceptionTransformingFunction, Func<OperationArguments> getOperationArgumentsFunction )
[JetBrains.Annotations.NotNull()] public: ValueResult<TValue^>^ ToNotNullValueResultgeneric<typename TValue> ( Func<Exception^,Exception^>^ exceptionTransformingFunction, Func<OperationArguments^>^ getOperationArgumentsFunction )
Parameters
- exceptionTransformingFunction
- A function to transform exceptions before including them in the result.
The value of this parameter cannot be
null(Nothingin Visual Basic). - getOperationArgumentsFunction
- A function that returns the operation arguments for error reporting.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- TValue
- The target type for the value.
Return Value
This method never returns null (Nothing in Visual Basic).