Assembly.GetObjectData(SerializationInfo, StreamingContext) Assembly.GetObjectData(SerializationInfo, StreamingContext) Assembly.GetObjectData(SerializationInfo, StreamingContext) Assembly.GetObjectData(SerializationInfo, StreamingContext) Method

定义

获取序列化信息,其中包含重新实例化此程序集所需的所有数据。Gets serialization information with all of the data needed to reinstantiate this assembly.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
public virtual void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overridable Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

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

context
StreamingContext StreamingContext StreamingContext StreamingContext

序列化的目标上下文。The destination context of the serialization.

实现

异常

安全性

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

适用于