OPC Studio User's Guide and Reference
Implicit Type Conversion Operator (UAMonitoringParameters)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAMonitoringParameters Class : Implicit Type Conversion Operator
The sampling interval (in milliseconds) indicates the fastest rate at which the Server should sample its underlying source for data changes.
Converts a sampling interval to monitoring parameters object.
Syntax
'Declaration
 
<JetBrains.Annotations.NotNullAttribute()>
Public Operator Widening CType( _
   ByVal samplingInterval As Integer _
) As UAMonitoringParameters
'Usage
 
[JetBrains.Annotations.NotNull()]
public UAMonitoringParameters operator implicit( 
   int samplingInterval
)
[JetBrains.Annotations.NotNull()]
public:
operator UAMonitoringParameters^ ( 
   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.

Return Value

Returns the monitoring parameters object with the specified sampling interval.

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

Exceptions
ExceptionDescription

The value of an argument is outside the allowable range of values as defined by the invoked method.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Remarks

This operator is equivalent to FromInt32.

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