UriParser.Register Method

Associates a scheme and port number with a UriParser.

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

Syntax

'Declaration
Public Shared Sub Register ( _
    uriParser As UriParser, _
    schemeName As String, _
    defaultPort As Integer _
)
public static void Register(
    UriParser uriParser,
    string schemeName,
    int defaultPort
)

Parameters

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

Exceptions

Exception Condition
ArgumentNullException

uriParser parameter is nulla null reference (Nothing in Visual Basic)

- or -

schemeName parameter is nulla null reference (Nothing in Visual Basic).

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.

Version Information

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

Platforms

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

See Also

Reference