共用方式為


ImageListStreamer.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

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

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext context);
public void GetObjectData (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Sub GetObjectData (si As SerializationInfo, context As StreamingContext)

參數

si
SerializationInfo

要以資料填入的 SerializationInfo

context
StreamingContext

StreamingContext,是這個序列化 (Serialization) 的目的端。

實作

例外狀況

因為沒有資料或格式不正確,所以無法使用資料來填入 (Populate) SerializationInfo

備註

如需詳細資訊和程式碼範例,請參閱 System.Runtime.Serialization.ISerializable

適用於