OPC Studio User's Guide and Reference
IsValidScheme Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Utilities Namespace > UriUtilities Class : IsValidScheme Method
The URI scheme to be tested.

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

Determines whether the URI scheme is valid.
Syntax
'Declaration
 
Public Shared Function IsValidScheme( _
   ByVal scheme As String _
) As Boolean
'Usage
 
Dim scheme As String
Dim value As Boolean
 
value = UriUtilities.IsValidScheme(scheme)
public static bool IsValidScheme( 
   string scheme
)
public:
static bool IsValidScheme( 
   String^ scheme
) 

Parameters

scheme
The URI scheme to be tested.

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

Return Value

Returns true if scheme is a valid URI scheme; returns false otherwise.
Remarks

This method checks if the provided scheme name adheres to the syntax rules for schemes as defined by the URI standard. It does not check if the scheme is supported by the application or any underlying system.

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