OPC Studio User's Guide and Reference
ClosedSuccess<T> Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > ValueResult Class : ClosedSuccess<T> Method

The value of this parameter can be null (Nothing in Visual Basic).

Infrastructure.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function ClosedSuccess(Of T)( _
   ByVal value As T _
) As ClosedValueResult(Of T)
'Usage
 
Dim value As T
Dim value As ClosedValueResult(Of T)
 
value = ValueResult.ClosedSuccess(Of T)(value)
[NotNull()]
public static ClosedValueResult<T> ClosedSuccess<T>( 
   T value
)
[NotNull()]
public:
static ClosedValueResult<T^>^ ClosedSuccessgeneric<typename T>
( 
   T^ value
) 

Parameters

value

The value of this parameter can be null (Nothing in Visual Basic).

Type Parameters

T

Return Value

This method never returns null (Nothing in Visual Basic).

Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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