Missing.ISerializable.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

使用重新创建 SerializationInfo 对象的唯一实例所需的逻辑上下文信息设置 Missing 对象。Sets a SerializationInfo object with the logical context information needed to recreate the sole instance of the Missing object.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

参数

info
SerializationInfo

要用序列化信息填充的 SerializationInfo 对象。The SerializationInfo object to be populated with serialization information.

context
StreamingContext

StreamingContext 对象,表示序列化的目标上下文。The StreamingContext object representing the destination context of the serialization.

实现

属性

异常

infonullinfo is null.

安全性

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

适用于