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
[C#]
public static bool CheckSchemeName(
 string schemeName
);
[C++]
public: static bool CheckSchemeName(
 String* schemeName
);
[JScript]
public static function CheckSchemeName(
   schemeName : String
) : Boolean;

Parameters

schemeName
The scheme name to validate.

Return Value

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

Remarks

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 "-".

Requirements

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

Show: