OPC Studio User's Guide and Reference
Implicit Type Conversion Operator (BrowsePath)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Navigation Namespace > BrowsePath Class : Implicit Type Conversion Operator
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 Operator Widening CType( _
   ByVal value As String _
) As BrowsePath
'Usage
 
[CanBeNull()]
[Pure()]
public BrowsePath operator implicit( 
   string value
)
[CanBeNull()]
[Pure()]
public:
operator BrowsePath^ ( 
   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.

This operator is equivalent to FromString.

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