OPC Studio User's Guide and Reference
FromInt32 Method (UAMonitoringParameters)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAMonitoringParameters Class : FromInt32 Method
The sampling interval (in milliseconds) indicates the fastest rate at which the Server should sample its underlying source for data changes.

Valid values of this parameter are in the range from -1 to 2147483647 (Int32.MaxValue).

Converts a sampling interval to monitoring parameters object.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromInt32( _
   ByVal samplingInterval As Integer _
) As UAMonitoringParameters
'Usage
 
Dim samplingInterval As Integer
Dim value As UAMonitoringParameters
 
value = UAMonitoringParameters.FromInt32(samplingInterval)
[NotNull()]
public static UAMonitoringParameters FromInt32( 
   int samplingInterval
)
[NotNull()]
public:
static UAMonitoringParameters^ FromInt32( 
   int samplingInterval
) 

Parameters

samplingInterval
The sampling interval (in milliseconds) indicates the fastest rate at which the Server should sample its underlying source for data changes.

Valid values of this parameter are in the range from -1 to 2147483647 (Int32.MaxValue).

Return Value

Returns the monitoring parameters object with the specified sampling interval.

This method never returns null (Nothing in Visual Basic).

Remarks

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this method explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

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