OPC Studio User's Guide and Reference
NetApiException Constructor(Exception)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.Engine Namespace > NetApiException Class > NetApiException Constructor : NetApiException Constructor(Exception)

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

Syntax
'Declaration
 
<ObsoleteAttribute("Do not use this constructor unless absolutely necessary. Wrapping exceptions with no added value should be avoided.")>
Public Function New( _
   ByVal e As Exception _
)
'Usage
 
Dim e As Exception
 
Dim instance As New NetApiException(e)
[Obsolete("Do not use this constructor unless absolutely necessary. Wrapping exceptions with no added value should be avoided.")]
public NetApiException( 
   Exception e
)
[Obsolete("Do not use this constructor unless absolutely necessary. Wrapping exceptions with no added value should be avoided.")]
public:
NetApiException( 
   Exception^ e
)

Parameters

e

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

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