QuickOPC User's Guide and Reference
FromString Method (ResourceDescriptor)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > ResourceDescriptor Class : FromString Method
A URL string of the resource.
Converts a string to a resource descriptor.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromString( _
   ByVal descriptorString As String _
) As ResourceDescriptor
'Usage
 
Dim descriptorString As String
Dim value As ResourceDescriptor
 
value = ResourceDescriptor.FromString(descriptorString)
[NotNull()]
public static ResourceDescriptor FromString( 
   string descriptorString
)
[NotNull()]
public:
static ResourceDescriptor^ FromString( 
   String^ descriptorString
) 

Parameters

descriptorString
A URL string of the resource.

Return Value

Returns a resource descriptor with the specified network address (resource URL).
Remarks

A generic string is used instead of System.Uri, because in some cases, the value may not represent a real URI.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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