ReflectionTypeLoadException.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

提供序列化对象的 ISerializable 实现。Provides an ISerializable implementation for serialized objects.

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 information and data needed to serialize or deserialize an object.

context
StreamingContext

序列化的上下文。The context for the serialization.

属性

异常

infonullinfo is null.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。Requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

适用于