OPC Studio User's Guide and Reference
SetRange Method (_UAIndexRange)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.ComTypes Namespace > _UAIndexRange Interface : SetRange Method
A minimum value of the range (i.e. a lower bound).

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

A maximum value of the range (i.e. an upper bound).

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

Modifies the minimum and maximum of the range at the same time.
Syntax
'Declaration
 
Sub SetRange( _
   ByVal minimum As Integer, _
   ByVal maximum As Integer _
) 
'Usage
 
Dim instance As _UAIndexRange
Dim minimum As Integer
Dim maximum As Integer
 
instance.SetRange(minimum, maximum)
void SetRange( 
   int minimum,
   int maximum
)
void SetRange( 
   int minimum,
   int maximum
) 

Parameters

minimum
A minimum value of the range (i.e. a lower bound).

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

maximum
A maximum value of the range (i.e. an upper bound).

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

Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

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.

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
Use this method if you need to change both the minimum and maximum. Setting the properties sequentially can raise an exception in some cases, because the minimum must always be less than or equal to the maximum.

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

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