Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initialisiert eine neue Instanz der WebProxy-Klasse mit der angegebenen Uri-Instanz.
Namespace: System.Net
Assembly: System (in system.dll)
Syntax
'Declaration
Public Sub New ( _
Address As Uri _
)
'Usage
Dim Address As Uri
Dim instance As New WebProxy(Address)
public WebProxy (
Uri Address
)
public:
WebProxy (
Uri^ Address
)
public WebProxy (
Uri Address
)
public function WebProxy (
Address : Uri
)
Parameter
- Address
Eine Uri-Instanz mit der Adresse des Proxyservers.
Hinweise
Bei der Initialisierung der WebProxy-Instanz wird die Address-Eigenschaft auf den Address-Parameter festgelegt.
Beispiel
Im folgenden Codebeispiel wird das Aufrufen dieses Konstruktors veranschaulicht.
public static WebProxy CreateProxyWithExampleAddress()
{
return new WebProxy(new Uri("http://contoso"));
}
WebProxy^ CreateProxyWithExampleAddress()
{
return gcnew WebProxy( gcnew Uri( "http://contoso" ) );
}
public static WebProxy CreateProxyWithExampleAddress()
{
return new WebProxy(new Uri("http://contoso"));
} //CreateProxyWithExampleAddress
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
.NET Compact Framework
Unterstützt in: 2.0, 1.0