OPC Studio User's Guide and Reference
FromString Method (BrowsePath)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Navigation Namespace > BrowsePath Class : FromString Method
The string containing the absolute browse path to be parsed.
Converts a string (containing an absolute browse path) to a browse path object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<PureAttribute()>
Public Shared Function FromString( _
   ByVal value As String _
) As BrowsePath
'Usage
 
Dim value As String
Dim value As BrowsePath
 
value = BrowsePath.FromString(value)
[CanBeNull()]
[Pure()]
public static BrowsePath FromString( 
   string value
)
[CanBeNull()]
[Pure()]
public:
static BrowsePath^ FromString( 
   String^ value
) 

Parameters

value
The string containing the absolute browse path to be parsed.

Return Value

Returns null when the input is null or an empty string. Otherwise, if the input string can be parsed, returns the corresponding browse path object.
Exceptions
ExceptionDescription
The browse path cannot be parsed.
Remarks
The input browse path, if not null, must be absolute.
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