VersionMismatchException.GetObjectData(SerializationInfo, StreamingContext) 方法

定義

使用有關例外狀況的資訊,設定 SerializationInfo。Sets the SerializationInfo with information about the exception.

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);
[<System.Security.SecurityCritical>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

SerializationInfo,其中保存所擲回之例外狀況的相關序列化物件資料。The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

StreamingContext,其中包含來源或目的地的相關內容資訊 。The StreamingContext that contains contextual information about the source or destination.

屬性

適用於