QuickOPC User's Guide and Reference
IsValidCookie Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEUtilities Class : IsValidCookie Method
The cookie to be tested.
Determines whether a given cookie value is valid in OPC Alarms&Events.
Syntax
'Declaration
 
<PureAttribute()>
Public Shared Function IsValidCookie( _
   ByVal cookie As Long _
) As Boolean
'Usage
 
Dim cookie As Long
Dim value As Boolean
 
value = AEUtilities.IsValidCookie(cookie)
[Pure()]
public static bool IsValidCookie( 
   long cookie
)
[Pure()]
public:
static bool IsValidCookie( 
   int64 cookie
) 

Parameters

cookie
The cookie to be tested.

Return Value

true if cookie is a valid cookie; false otherwise.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also