Register Method
Collapse the table of content
Expand the table of content

UriParser.Register Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Associates a scheme and port number with a UriParser.

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

'Declaration
Public Shared Sub Register ( _
	uriParser As UriParser, _
	schemeName As String, _
	defaultPort As Integer _
)

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 Nothing

- or -

schemeName parameter is Nothing.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft