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

errNo
HRESULT error code
errTxt
Description of the error code.

Glossary Item Box

The error description is overwritten. The predefined description can be replaced, e.g. in more detail or in another language.

Syntax

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

Parameters

errNo
HRESULT error code
errTxt
Description of the error code.

Return Value

S_OK or OPC_E_NOTFOUND (0xC0040011) if the error code is not yet 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.