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.

属性

适用于