QuickOPC 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.
Requirements

Target Platforms: .NET Framework: Windows 10, Windows Server 2012; .NET Core: Linux, macOS, Microsoft Windows

See Also

Reference

UAIndexRangeList Class
UAIndexRangeList Members