FileWebRequest(SerializationInfo, StreamingContext) Constructor

Definition

Warning

This API is now obsolete.

Initialise une nouvelle instance de la classe FileWebRequest à partir des instances spécifiées des classes SerializationInfo et StreamingContext.Initializes a new instance of the FileWebRequest class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 FileWebRequest(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202")]
protected FileWebRequest (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202")]
protected FileWebRequest (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202")]
[System.Obsolete("Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202")]
protected FileWebRequest (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected FileWebRequest (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.FileWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.FileWebRequest
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

Objet SerializationInfo qui contient les informations requises pour sérialiser le nouvel objet FileWebRequest.A SerializationInfo object that contains the information that is required to serialize the new FileWebRequest object.

streamingContext
StreamingContext

Objet StreamingContext qui contient la source du flux sérialisé associé au nouvel objet FileWebRequest.A StreamingContext object that contains the source of the serialized stream that is associated with the new FileWebRequest object.

Attributes

Remarks

Ce constructeur implémente l’interface ISerializable pour la classe FileWebRequest.This constructor implements the ISerializable interface for the FileWebRequest class.

Applies to

See also