Constructs and initializes a new instance of the UriBuilder class with the specified scheme, host, and port.
Type Reason ArgumentOutOfRangeException portNumber 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 "/" Port portNumber Query string.Empty Scheme scheme UserName string.Empty
Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0