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.

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

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.

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

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.

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

Exceptions
ExceptionDescription
The browse path cannot be parsed.
Remarks
The input browse path, if not null, must be absolute.

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this method explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

This method is pure, i.e. it does not have observable side effects.

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