Freigeben über


HttpWebResponse-Konstruktor

HINWEIS: Dieser Konstruktor ist mittlerweile veraltet.

Initialisiert eine neue Instanz der HttpWebResponse-Klasse aus der angegebenen SerializationInfo-Instanz und der angegebenen StreamingContext-Instanz.

Namespace: System.Net
Assembly: System (in system.dll)

Syntax

'Declaration
<ObsoleteAttribute("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")> _
Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
'Usage
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New HttpWebResponse(serializationInfo, streamingContext)
[ObsoleteAttribute("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")] 
protected HttpWebResponse (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
[ObsoleteAttribute(L"Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202")] 
protected:
HttpWebResponse (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
/** @attribute ObsoleteAttribute("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202") */ 
protected HttpWebResponse (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
ObsoleteAttribute("Serialization is obsoleted for this type.  https://go.microsoft.com/fwlink/?linkid=14202") 
protected function HttpWebResponse (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

Parameter

  • streamingContext
    Ein StreamingContext mit der Quelle des serialisierten Streams, der der neuen HttpWebRequest zugeordnet ist.

Hinweise

Dieser Konstruktor implementiert die ISerializable-Schnittstelle für die HttpWebRequest-Klasse.

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: 1.0, 1.1
Veraltet (Compilerwarnung) in 2.0

Siehe auch

Referenz

HttpWebResponse-Klasse
HttpWebResponse-Member
System.Net-Namespace
ISerializable