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

定义

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

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

context
StreamingContext StreamingContext StreamingContext StreamingContext

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

实现

异常

安全性

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

适用于