OPC Studio User's Guide and Reference
IsValidLocale Method



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess Namespace > DAUtilities Class : IsValidLocale Method
The locale to be tested.
Determines whether a given locale is valid in OPC Data Access.
Syntax
'Declaration
 
<PureAttribute()>
Public Shared Function IsValidLocale( _
   ByVal locale As Long _
) As Boolean
'Usage
 
Dim locale As Long
Dim value As Boolean
 
value = DAUtilities.IsValidLocale(locale)
[Pure()]
public static bool IsValidLocale( 
   long locale
)
[Pure()]
public:
static bool IsValidLocale( 
   int64 locale
) 

Parameters

locale
The locale to be tested.

Return Value

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

This method is pure, i.e. it does not have observable side effects.

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