QuickOPC User's Guide and Reference
ClosedFailure<T> Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > ValueResult Class : ClosedFailure<T> Method
Infrastructure.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function ClosedFailure(Of T)( _
   ByVal exception As Exception _
) As ClosedValueResult(Of T)
'Usage
 
Dim exception As Exception
Dim value As ClosedValueResult(Of T)
 
value = ValueResult.ClosedFailure(Of T)(exception)
[NotNull()]
public static ClosedValueResult<T> ClosedFailure<T>( 
   Exception exception
)
[NotNull()]
public:
static ClosedValueResult<T^>^ ClosedFailuregeneric<typename T>
( 
   Exception^ exception
) 

Parameters

exception

Type Parameters

T
Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also