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.
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.
| Exception | Condition |
|---|---|
| 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. |
Show: