System.UriParser.Register Method

Associates a scheme and port number with a UriParser.

Syntax

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

Parameters

uriParser
The URI parser to register.
schemeName
The name of the scheme that is associated with this parser.
defaultPort
The default port number for the specified scheme.

Remarks

If the defaultPort parameter is set to -1, the UriParser.Register(UriParser, string, int) method registers no default value for the port number.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0