OPCDA.NET Reference Manual
GetErrorString Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcServer Class : GetErrorString Method

errorCode
IN: HRESULTS error code
localeID
IN: requested LocaleId

Glossary Item Box

Return the description for the specified error. If any error occurs an OPCException is thrown.
The expected behavior is that this will include handling of Win32 errors as well (such as RPC errors).
Note that if this method is being called via DCOM then it is very possible that RPC or other network related errors will be returned. For this reason it is probably good practice for the client to attempt to call a local Win32 function such as FormatMessage if this function fails.

Syntax

Visual Basic (Declaration) 
Public Function GetErrorString( _
   ByVal errorCode As Integer, _
   ByVal localeID As Integer _
) As String
C# 
public string GetErrorString( 
   int errorCode,
   int localeID
)

Parameters

errorCode
IN: HRESULTS error code
localeID
IN: requested LocaleId

Return Value

Error description string

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.