OPCDA.NET Reference Manual
AddErrorDefinition Method
See Also  Send Feedback
OpcNetBase.Net4 Assembly > OPC Namespace > ErrorDescriptions Class : AddErrorDefinition Method

errNo
HRESULT error code
errTxt
Description of the error code.

Glossary Item Box

Add an error description to the component internal table.

Syntax

Visual Basic (Declaration) 
Public Shared Function AddErrorDefinition( _
   ByVal errNo As Integer, _
   ByVal errTxt As String _
) As Integer
C# 
public static int AddErrorDefinition( 
   int errNo,
   string errTxt
)

Parameters

errNo
HRESULT error code
errTxt
Description of the error code.

Return Value

S_OK or OPC_E_DUPLICATENAME (0xC004000C) ifXDASrverror code is already defined.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.