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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib Namespace > ResourceDescriptor Class : FromUri Method
The URI of the resource.
Converts a System.Uri to a resource descriptor.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FromUri( _
   ByVal uri As Uri _
) As ResourceDescriptor
'Usage
 
Dim uri As Uri
Dim value As ResourceDescriptor
 
value = ResourceDescriptor.FromUri(uri)
[NotNull()]
public static ResourceDescriptor FromUri( 
   Uri uri
)
[NotNull()]
public:
static ResourceDescriptor^ FromUri( 
   Uri^ uri
) 

Parameters

uri
The URI of the resource.

Return Value

Returns a resource descriptor with the specified resource URL.
Remarks

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