OPC Studio User's Guide and Reference
IsValidCategoryId Method



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

Parameters

categoryId
The category Id to be tested.

Return Value

true if categoryId is a valid category Id; 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