Name

WebProxy

Synopsis

This implementation of IWebProxy supports HTTP proxies. Use the one-argument form of the constructor to specify the URI of the proxy server. The second argument BypassOnLocal, if set to true, bypasses the proxy server for local (intranet) addresses. Other forms of the constructor allow you to specify an array that lists servers for which you should bypass the proxy (this list can contain regular expression strings containing URI patterns to match). You can also supply network credentials to authenticate your application to the proxy server.

See GlobalProxySelection or the WebRequest.Proxy property for details on configuring a proxy.

Public Class WebProxy : Implements IWebProxy, System.Runtime.Serialization.ISerializable
' Public Constructors
   Public Sub New() 
   Public Sub New( ByVal Address As String) 
   Public Sub New(ByVal Address As String, 
        ByVal BypassOnLocal As Boolean) 
   Public Sub New(ByVal Address As String, 
        ByVal BypassOnLocal As Boolean, 
        ByVal BypassList As String()) 
   Public Sub New(ByVal Address As String, 
        ByVal BypassOnLocal As Boolean, 
        ByVal BypassList As String(), 
        ByVal Credentials As ICredentials) 
   Public Sub New(ByVal Host As String, ByVal Port As Integer) 
   Public Sub New( ByVal Address As Uri) 
   Public Sub New(ByVal Address As Uri, 
        ByVal BypassOnLocal As Boolean) 
   Public Sub New(ByVal Address As Uri, 
        ByVal BypassOnLocal As Boolean, 
        ByVal BypassList As String()) 
   Public Sub New(ByVal Address As Uri, ByVal BypassOnLocal As Boolean, ByVal BypassList As String(), ...

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.