OPCAE.NET Reference Manual
GetKeepAlive Method
See Also  Send Feedback
OPCAE.NET Namespace > EventSubscriptionMgt Class : GetKeepAlive Method

KeepAliveTime
The maximum amount of time (in milliseconds) the server sends a new subscription callback since the last subscription callback. A value of zero indicates the server will not send any keepalive callbacks. If SetKeepAlive() has never been called, the value will be 0.

Glossary Item Box

Returns the currently active keep-alive time for the subscription.

Syntax

Visual Basic (Declaration) 
Public Function GetKeepAlive( _
   ByRef KeepAliveTime As Integer _
) As Integer
C# 
public int GetKeepAlive( 
   out int KeepAliveTime
)

Parameters

KeepAliveTime
The maximum amount of time (in milliseconds) the server sends a new subscription callback since the last subscription callback. A value of zero indicates the server will not send any keepalive callbacks. If SetKeepAlive() has never been called, the value will be 0.

Return Value

HRESULTS error/success code.

Requirements

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

See Also

© 2002-2018 Advosol Inc. All Rights Reserved.