RuleEvaluationIncompatibleTypesException.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

使用关于异常的信息设置 SerializationInfoSets the SerializationInfo with information about the exception.

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

参数

info
SerializationInfo

包含有关所引发异常的序列化对象数据的 SerializationInfoThe 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.

实现

注解

GetObjectData 用针对于序列化的所有 SerializationInfo 对象数据设置 RuleEvaluationIncompatibleTypesExceptionGetObjectData sets a SerializationInfo with all the RuleEvaluationIncompatibleTypesException object data targeted for serialization. 反序列化期间,从通过流传输的 SerializationInfo 重建此异常。During de-serialization, this exception is reconstituted from the SerializationInfo transmitted over the stream.

适用于