PrintSystemException.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

取得用於序列化物件的資料並取得序列化資料流的內容。Gets the data that is used to serialize the object and gets the context of the serialized stream.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

序列化或還原序列化物件所需要的資料。The data that is required to serialize or deserialize an object.

context
StreamingContext

已序列化資料流的內容,包括來源和目的端。The context, including source and destination, of the serialized stream.

屬性

適用於