共用方式為


BootstrapContext.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

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

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, 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 Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

要填入資料的物件。

context
StreamingContext

這個序列化的目的端。 可以是 null

實作

例外狀況

infonull

適用於