This documentation is archived and is not being maintained.

Uri.CheckSchemeName Method

Determines whether the specified scheme name is valid.

[Visual Basic]
Public Shared Function CheckSchemeName( _
   ByVal schemeName As String _
) As Boolean
public static bool CheckSchemeName(
 string schemeName
public: static bool CheckSchemeName(
 String* schemeName
public static function CheckSchemeName(
   schemeName : String
) : Boolean;


The scheme name to validate.

Return Value

true if the scheme name is valid; otherwise, false.


The CheckSchemeName method checks the scheme name for validity according to RFC 2396. The scheme name must begin with a letter, and must contain only letters, digits, and the characters ".", "+", or "-".


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Uri Class | Uri Members | System Namespace