AssemblyName.GetObjectData(SerializationInfo, StreamingContext) 方法

定义

获取序列化信息,其中包含重新创建此 AssemblyName 实例所需的所有数据。Gets serialization information with all the data needed to recreate an instance of this AssemblyName.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
public 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 Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

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

context
StreamingContext

序列化的目标上下文。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.

适用于