OPC Studio User's Guide and Reference
IsValidSamplingInterval Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAUtilities Class : IsValidSamplingInterval Method
The sampling interval to be tested.
Determines whether a given sampling interval is valid in OPC Unified Architecture.
Syntax
'Declaration
 
<PureAttribute()>
Public Shared Function IsValidSamplingInterval( _
   ByVal samplingInterval As Integer _
) As Boolean
'Usage
 
Dim samplingInterval As Integer
Dim value As Boolean
 
value = UAUtilities.IsValidSamplingInterval(samplingInterval)
[Pure()]
public static bool IsValidSamplingInterval( 
   int samplingInterval
)
[Pure()]
public:
static bool IsValidSamplingInterval( 
   int samplingInterval
) 

Parameters

samplingInterval
The sampling interval to be tested.

Return Value

true if samplingInterval is a valid sampling interval; 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