Mono Class Library: System.Uri Overview | Members

System.Uri.CheckSchemeName Method

Returns a bool value indicating whether the specified scheme name is valid.

public static bool CheckSchemeName (string schemeName)

Parameters

schemeName
A string containing the scheme name to validate.

Returns

true if the scheme name is valid; otherwise, false. If schemeName is null or is a zero-length string, returns false.

Remarks

Note: The scheme name is required to begin with a letter, and contain only letters, digits, and the characters '.', '+' or '-'.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0