Ejemplo n.º 1
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Net.WebProxy" /> class with the specified URI, bypass setting, list of URIs to bypass, and credentials.</summary>
 /// <param name="Address">The URI of the proxy server. </param>
 /// <param name="BypassOnLocal">true to bypass the proxy for local addresses; otherwise, false. </param>
 /// <param name="BypassList">An array of regular expression strings that contains the URIs of the servers to bypass. </param>
 /// <param name="Credentials">An <see cref="T:System.Net.ICredentials" /> instance to submit to the proxy server for authentication. </param>
 /// <exception cref="T:System.UriFormatException">
 ///   <paramref name="Address" /> is an invalid URI. </exception>
 public WebProxy(string address, bool bypassOnLocal, string[] bypassList, ICredentials credentials) : this(WebProxy.ToUri(address), bypassOnLocal, bypassList, credentials)
 {
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Net.WebProxy" /> class with the specified URI and bypass setting.</summary>
 /// <param name="Address">The URI of the proxy server. </param>
 /// <param name="BypassOnLocal">true to bypass the proxy for local addresses; otherwise, false. </param>
 /// <exception cref="T:System.UriFormatException">
 ///   <paramref name="Address" /> is an invalid URI. </exception>
 public WebProxy(string address, bool bypassOnLocal) : this(WebProxy.ToUri(address), bypassOnLocal, null, null)
 {
 }
Ejemplo n.º 3
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Net.WebProxy" /> class with the specified URI, bypass setting, and list of URIs to bypass.</summary>
 /// <param name="Address">The URI of the proxy server. </param>
 /// <param name="BypassOnLocal">true to bypass the proxy for local addresses; otherwise, false. </param>
 /// <param name="BypassList">An array of regular expression strings that contain the URIs of the servers to bypass. </param>
 /// <exception cref="T:System.UriFormatException">
 ///   <paramref name="Address" /> is an invalid URI. </exception>
 public WebProxy(string address, bool bypassOnLocal, string[] bypassList) : this(WebProxy.ToUri(address), bypassOnLocal, bypassList, null)
 {
 }
Ejemplo n.º 4
0
 /// <summary>Initializes a new instance of the <see cref="T:System.Net.WebProxy" /> class with the specified URI.</summary>
 /// <param name="Address">The URI of the proxy server. </param>
 /// <exception cref="T:System.UriFormatException">
 ///   <paramref name="Address" /> is an invalid URI. </exception>
 public WebProxy(string address) : this(WebProxy.ToUri(address), false, null, null)
 {
 }