UriParser.IsKnownScheme Method (String)

 

Indicates whether the parser for a scheme is registered.

Namespace:   System
Assembly:  System (in System.dll)

public static bool IsKnownScheme(
	string schemeName
)

Parameters

schemeName
Type: System.String

The scheme name to check.

Return Value

Type: System.Boolean

true if schemeName has been registered; otherwise, false.

Exception Condition
ArgumentNullException

The schemeName parameter is null.

ArgumentOutOfRangeException

The schemeName parameter is not valid.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: