WebProxy コンストラクタ (Uri, Boolean)
アセンブリ: System (system.dll 内)

Dim Address As Uri Dim BypassOnLocal As Boolean Dim instance As New WebProxy(Address, BypassOnLocal)


public static WebProxy CreateProxyWithExampleAddress(bool bypassLocal) { return new WebProxy(new Uri("http://contoso"), bypassLocal); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (String, Int32)
アセンブリ: System (system.dll 内)





Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (Uri, Boolean, String[], ICredentials)
アセンブリ: System (system.dll 内)

Public Sub New ( _ Address As Uri, _ BypassOnLocal As Boolean, _ BypassList As String(), _ Credentials As ICredentials _ )
Dim Address As Uri Dim BypassOnLocal As Boolean Dim BypassList As String() Dim Credentials As ICredentials Dim instance As New WebProxy(Address, BypassOnLocal, BypassList, Credentials)
public: WebProxy ( Uri^ Address, bool BypassOnLocal, array<String^>^ BypassList, ICredentials^ Credentials )
public WebProxy ( Uri Address, boolean BypassOnLocal, String[] BypassList, ICredentials Credentials )
public function WebProxy ( Address : Uri, BypassOnLocal : boolean, BypassList : String[], Credentials : ICredentials )

Address プロパティを Address に設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定し、BypassList プロパティを BypassList に設定し、Credentials プロパティを Credentials に設定して、WebProxy インスタンスを初期化します。

public static WebProxy CreateProxyWithCredentials2(bool bypassLocal) { // Do not use the proxy server for Contoso.com URIs. string[] bypassList = new string[]{";*.Contoso.com"}; return new WebProxy(new Uri("http://contoso"), bypassLocal, bypassList, CredentialCache.DefaultCredentials); }
WebProxy^ CreateProxyWithCredentials2( bool bypassLocal ) { // Do not use the proxy server for Contoso.com URIs. array<String^>^ bypassList = {";*.Contoso.com"}; return gcnew WebProxy( gcnew Uri( "http://contoso" ), bypassLocal, bypassList, CredentialCache::DefaultCredentials ); }
public static WebProxy CreateProxyWithCredentials2(boolean bypassLocal) { // Do not use the proxy server for Contoso.com URIs. String bypassList[] = new String[] { ";*.Contoso.com" }; return new WebProxy(new Uri("http://contoso"), bypassLocal, bypassList, CredentialCache.get_DefaultCredentials()); } //CreateProxyWithCredentials2

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (String, Boolean)
アセンブリ: System (system.dll 内)

Dim Address As String Dim BypassOnLocal As Boolean Dim instance As New WebProxy(Address, BypassOnLocal)


Address プロパティを Address が格納された Uri インスタンスに設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定して、WebProxy インスタンスを初期化します。

public static WebProxy CreateProxyWithHostAddress(bool bypassLocal) { WebProxy proxy = new WebProxy("http://contoso", bypassLocal); Console.WriteLine("Bypass proxy for local URIs?: {0}", proxy.BypassProxyOnLocal); return proxy; }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: System (system.dll 内)

Protected Sub New ( _ serializationInfo As SerializationInfo, _ streamingContext As StreamingContext _ )
Dim serializationInfo As SerializationInfo Dim streamingContext As StreamingContext Dim instance As New WebProxy(serializationInfo, streamingContext)
protected function WebProxy ( serializationInfo : SerializationInfo, streamingContext : StreamingContext )


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (Uri, Boolean, String[])
アセンブリ: System (system.dll 内)

Dim Address As Uri Dim BypassOnLocal As Boolean Dim BypassList As String() Dim instance As New WebProxy(Address, BypassOnLocal, BypassList)

Address プロパティを Address に設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定し、BypassList プロパティを BypassList に設定して、WebProxy インスタンスを初期化します。

public static WebProxy CreateProxyWithBypassList(bool bypassLocal) { // Do not use the proxy server for Contoso.com URIs. string[] bypassList = new string[]{";*.Contoso.com"}; return new WebProxy(new Uri("http://contoso"), bypassLocal, bypassList); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (Uri)
アセンブリ: System (system.dll 内)



public static WebProxy CreateProxyWithExampleAddress() { return new WebProxy(new Uri("http://contoso")); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (String)
アセンブリ: System (system.dll 内)





Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (String, Boolean, String[])
アセンブリ: System (system.dll 内)

Dim Address As String Dim BypassOnLocal As Boolean Dim BypassList As String() Dim instance As New WebProxy(Address, BypassOnLocal, BypassList)


Address プロパティを Address が格納された Uri インスタンスに設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定し、BypassList プロパティを BypassList に設定して、WebProxy インスタンスを初期化します。

public static WebProxy CreateProxyWithHostAndBypassList(bool bypassLocal) { // Do not use the proxy server for Contoso.com URIs. string[] bypassList = new string[]{";*.Contoso.com"}; return new WebProxy("http://contoso", bypassLocal, bypassList); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ (String, Boolean, String[], ICredentials)
アセンブリ: System (system.dll 内)

Public Sub New ( _ Address As String, _ BypassOnLocal As Boolean, _ BypassList As String(), _ Credentials As ICredentials _ )
Dim Address As String Dim BypassOnLocal As Boolean Dim BypassList As String() Dim Credentials As ICredentials Dim instance As New WebProxy(Address, BypassOnLocal, BypassList, Credentials)
public WebProxy ( string Address, bool BypassOnLocal, string[] BypassList, ICredentials Credentials )
public: WebProxy ( String^ Address, bool BypassOnLocal, array<String^>^ BypassList, ICredentials^ Credentials )
public WebProxy ( String Address, boolean BypassOnLocal, String[] BypassList, ICredentials Credentials )
public function WebProxy ( Address : String, BypassOnLocal : boolean, BypassList : String[], Credentials : ICredentials )


Address プロパティを Address が格納された Uri インスタンスに設定し、BypassProxyOnLocal プロパティを BypassOnLocal に設定し、BypassList プロパティを BypassList に設定し、Credentials プロパティを Credentials に設定して、WebProxy インスタンスを初期化します。

public static WebProxy CreateProxyWithCredentials(bool bypassLocal) { // Do not use the proxy server for Contoso.com URIs. string[] bypassList = new string[]{";*.Contoso.com"}; return new WebProxy("http://contoso", bypassLocal, bypassList, CredentialCache.DefaultCredentials); }
WebProxy^ CreateProxyWithCredentials( bool bypassLocal ) { // Do not use the proxy server for Contoso.com URIs. array<String^>^ bypassList = {";*.Contoso.com"}; return gcnew WebProxy( "http://contoso" , bypassLocal, bypassList, CredentialCache::DefaultCredentials ); }
public static WebProxy CreateProxyWithCredentials(boolean bypassLocal) { // Do not use the proxy server for Contoso.com URIs. String bypassList[] = new String[] { ";*.Contoso.com" }; return new WebProxy("http://contoso", bypassLocal, bypassList, CredentialCache.get_DefaultCredentials()); } //CreateProxyWithCredentials

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


WebProxy コンストラクタ


WebProxy コンストラクタ ()
アセンブリ: System (system.dll 内)


既定のコンストラクタは、Address プロパティを null 参照 (Visual Basic では Nothing) に設定して、WebProxy クラスの空のインスタンスを初期化します。
Address プロパティが null 参照 (Visual Basic では Nothing) の場合、IsBypassed メソッドは true を返し、GetProxy メソッドは終点アドレスを返します。


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- WebProxy コンストラクタのページへのリンク