OPC Studio User's Guide and Reference
TryParse Method (IUAIndexRangeListParser)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Parsing Namespace > IUAIndexRangeListParser Interface : TryParse Method
Formatted text of the index range list.

The value of this parameter cannot be null (Nothing in Visual Basic).

A OpcLabs.EasyOpc.UA.UAIndexRangeList object. The converted index range list object.

The value of this parameter can be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Converts the string representation of an index range list to equivalent index range list object. A return value indicates whether the conversion succeeded.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ExceptionContractAnnotationAttribute(True)>
Function TryParse( _
   ByVal input As String, _
   ByRef resultList As UAIndexRangeList _
) As IStringParsingError
'Usage
 
Dim instance As IUAIndexRangeListParser
Dim input As String
Dim resultList As UAIndexRangeList
Dim value As IStringParsingError
 
value = instance.TryParse(input, resultList)
[CanBeNull()]
[ExceptionContractAnnotation(true)]
IStringParsingError TryParse( 
   string input,
   out UAIndexRangeList resultList
)
[CanBeNull()]
[ExceptionContractAnnotation(true)]
IStringParsingError^ TryParse( 
   String^ input,
   [Out] UAIndexRangeList^ resultList
) 

Parameters

input
Formatted text of the index range list.

The value of this parameter cannot be null (Nothing in Visual Basic).

resultList
A OpcLabs.EasyOpc.UA.UAIndexRangeList object. The converted index range list object.

The value of this parameter can be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

Return Value

Returns null if input was converted successfully; otherwise, returns an error object that describes the problem.

This method can return null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

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.

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