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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Networking Namespace > ResourceAddress Class : FromString Method
The descriptor string to create the resource address from.

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

Creates a resource address from a descriptor string.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromString( _
   ByVal descriptorString As String _
) As ResourceAddress
'Usage
 
Dim descriptorString As String
Dim value As ResourceAddress
 
value = ResourceAddress.FromString(descriptorString)
[NotNull()]
public static ResourceAddress FromString( 
   string descriptorString
)
[NotNull()]
public:
static ResourceAddress^ FromString( 
   String^ descriptorString
) 

Parameters

descriptorString
The descriptor string to create the resource address from.

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

Return Value

Returns the resource address object created from the descriptor string.

This method never returns null (Nothing in Visual Basic).

Remarks

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.

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