Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UrlBuilder"/> class
 /// with the specified scheme and host.
 /// </summary>
 /// <param name="scheme">An Internet access protocol.</param>
 /// <param name="host">A DNS-style domain name or IP address.</param>
 /// <param name="port">An IP port number for the service.</param>
 /// <param name="path">The path to the Internet resource.</param>
 /// <param name="extraValue">A query string or fragment identifier.</param>
 /// <exception cref="System.ArgumentException">
 /// <paramref name="extraValue"/> is neither <see langword="null"/>
 /// nor <see cref="System.String.Empty">System.String.Empty</see>, nor
 /// does a valid fragment identifier begin with a number sign (#), nor
 /// a valid query string begin with a question mark (?).
 /// </exception>
 /// <exception cref="System.ArgumentOutOfRangeException">
 /// <paramref name="port"/> is less than -1 or greater than 65,535.
 /// </exception>
 public UrlBuilder(UriScheme scheme, string host, int port, string path, string extraValue)
 {
     this.builder         = new UriBuilder(scheme, host, port, path, extraValue);
     this.queryParameters = new QueryStringParametersDictionary(this.builder.Query);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UrlBuilder"/> class
 /// with the specified scheme and host.
 /// </summary>
 /// <param name="scheme">An Internet access protocol.</param>
 /// <param name="host">A DNS-style domain name or IP address.</param>
 /// <param name="port">An IP port number for the service.</param>
 /// <param name="path">The path to the Internet resource.</param>
 /// <exception cref="System.ArgumentOutOfRangeException">
 /// <paramref name="port"/> is less than -1 or greater than 65,535.
 /// </exception>
 public UrlBuilder(UriScheme scheme, string host, int port, string path)
 {
     this.builder         = new UriBuilder(scheme, host, port, path);
     this.queryParameters = new QueryStringParametersDictionary();
 }