共用方式為


FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

警告

Serialization has been deprecated for FileWebRequest.

將序列化目標物件所需的資料填入 SerializationInfo

protected:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization has been deprecated for FileWebRequest.")]
protected override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Obsolete("Serialization has been deprecated for FileWebRequest.")>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Protected Overrides Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

參數

serializationInfo
SerializationInfo

要以資料填入的 SerializationInfo

streamingContext
StreamingContext

StreamingContext,指定這個序列化的目的地。

屬性

備註

包含在中的任何 SerializationInfo 物件都會由格式器自動追蹤和串行化。

適用於