BypassProxyOnLocal Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets a value that indicates whether to bypass the proxy server for local addresses.
Namespace: System.Net
Assembly: System.Http (in System.Http.dll)
Syntax
'Declaration
Public Property BypassProxyOnLocal As Boolean
public bool BypassProxyOnLocal { get; set; }
public:
property bool BypassProxyOnLocal {
bool get ();
void set (bool value);
}
member BypassProxyOnLocal : bool with get, set
function get BypassProxyOnLocal () : boolean
function set BypassProxyOnLocal (value : boolean)
Property Value
Type: System. . :: . .Boolean
true to bypass the proxy server for local addresses; otherwise, false. The default value is false.
Remarks
The setting of the BypassProxyOnLocal property determines whether WebRequest instances use the proxy server when accessing local Internet resources.
If BypassProxyOnLocal is true, requests to local Internet resources do not use the proxy server. Local requests are identified by the lack of a period (.) in the URI, as in http://webserver/, or access the local server, including https://localhost, https://loopback, or http://127.0.0.1. When BypassProxyOnLocal is false, all Internet requests are made through the proxy server.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.