Constructs and initializes a new instance of the UriBuilder class with the specified scheme, host, port number, and path.
Type Reason ArgumentOutOfRangeException port is less than zero.
This constructor creates a new instance of the UriBuilder class with its properties initialized as follows:
Property Initial value Fragment string.Empty Host host Password string.Empty Path pathValue Port port Query string.Empty Scheme scheme UserName string.Empty Before setting the UriBuilder.Path property, this constructor converts any backward slashes in pathValue to forward slashes, and calls Uri.EscapeString(string)(pathValue).
Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0