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

hresultcode
HRESULTS error/success code.

Glossary Item Box

The function returns true if the HRESULTS code is a failure code. It returns false for S_OK or any success code such as S_FALSE.

Syntax

Visual Basic (Declaration) 
Public Shared Function Failed( _
   ByVal hresultcode As Integer _
) As Boolean
C# 
public static bool Failed( 
   int hresultcode
)

Parameters

hresultcode
HRESULTS error/success code.

Return Value

returns true if the HRESULTS code is an error code.

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.