ImageListStreamer.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

將序列化目標物件所需的資料填入 SerializationInfoPopulates a SerializationInfo with the data needed to serialize the target object.

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

要以資料填入的 SerializationInfoThe SerializationInfo to populate with data.

context
StreamingContext

StreamingContext,是這個序列化 (Serialization) 的目的端。The StreamingContext that is the destination for this serialization.

實作

例外狀況

因為沒有資料或格式不正確,所以無法使用資料來填入 (Populate) SerializationInfoThe SerializationInfo cannot be populated with data because no data exists, or it is not in the correct format.

備註

如需詳細資訊和程式碼範例,請參閱 System.Runtime.Serialization.ISerializableFor more information and a code example, see System.Runtime.Serialization.ISerializable.

安全性

SecurityPermission
提供序列化服務。for providing serialization services. 相關聯的列舉:SerializationFormatterAssociated enumeration: SerializationFormatter

適用於