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



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPubSubConnectionDescriptor Class : FromString Method
Descriptor string for the PubSub connection resource.

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

Converts a descriptor string to a PubSub connection descriptor.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromString( _
   ByVal resourceDescriptorString As String _
) As UAPubSubConnectionDescriptor
'Usage
 
Dim resourceDescriptorString As String
Dim value As UAPubSubConnectionDescriptor
 
value = UAPubSubConnectionDescriptor.FromString(resourceDescriptorString)
[NotNull()]
public static UAPubSubConnectionDescriptor FromString( 
   string resourceDescriptorString
)
[NotNull()]
public:
static UAPubSubConnectionDescriptor^ FromString( 
   String^ resourceDescriptorString
) 

Parameters

resourceDescriptorString
Descriptor string for the PubSub connection resource.

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

Return Value

Returns a PubSub connection descriptor for connection to the resource specified by resourceDescriptorString.

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

Remarks

In most common cases, the descriptor string is simply a resource URL string.

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