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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAIndexRangeList Class : TryParse Method
A string containing an index range list to convert.
When this method returns, contains the UAIndexRangeList value equivalent to the index range list contained in the input arguments, if the conversion succeeded, or null if the conversion failed. The conversion fails if the input argument does not contain a valid string representation of an index range list. This parameter is passed uninitialized.
Converts the specified string representation of an index range list to its UAIndexRangeList equivalent.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function TryParse( _
   ByVal input As String, _
   ByRef resultList As UAIndexRangeList _
) As IStringParsingError
'Usage
 
Dim input As String
Dim resultList As UAIndexRangeList
Dim value As IStringParsingError
 
value = UAIndexRangeList.TryParse(input, resultList)
[CanBeNull()]
public static IStringParsingError TryParse( 
   string input,
   out UAIndexRangeList resultList
)
[CanBeNull()]
public:
static IStringParsingError^ TryParse( 
   String^ input,
   [Out] UAIndexRangeList^ resultList
) 

Parameters

input
A string containing an index range list to convert.
resultList
When this method returns, contains the UAIndexRangeList value equivalent to the index range list contained in the input arguments, if the conversion succeeded, or null if the conversion failed. The conversion fails if the input argument does not contain a valid string representation of an index range list. This parameter is passed uninitialized.

Return Value

true if the input parameter was converted successfully; otherwise, false.
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