UriParser.Register Method

Associates a scheme and port number with a UriParser.

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

public static void Register(
	UriParser uriParser,
	string schemeName,
	int defaultPort
)

Parameters

uriParser
Type: System.UriParser
The UriParser to register.
schemeName
Type: System.String
The name of the scheme that is associated with this parser.
defaultPort
Type: System.Int32
The default port number for the specified scheme.

ExceptionCondition
ArgumentNullException

uriParser parameter is null

- or -

schemeName parameter is null.

ArgumentOutOfRangeException

schemeName parameter is not valid

- or -

defaultPort parameter is not valid. The defaultPort parameter must not be less than zero or greater than 65534.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: