FileWebRequest(SerializationInfo, StreamingContext) 构造函数

定义

警告

此 API 现已过时。

FileWebRequestSerializationInfo 类的指定实例初始化 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. 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);
[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

参数

serializationInfo
SerializationInfo

SerializationInfo 对象,它包含序列化新的 FileWebRequest 对象所需的信息。A SerializationInfo object that contains the information that is required to serialize the new FileWebRequest object.

streamingContext
StreamingContext

StreamingContext 对象,它包含与新的 FileWebRequest 对象关联的序列化流的源。A StreamingContext object that contains the source of the serialized stream that is associated with the new FileWebRequest object.

属性

注解

此构造函数实现 FileWebRequest 类的 ISerializable 接口。This constructor implements the ISerializable interface for the FileWebRequest class.

适用于

另请参阅