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

定义

实现 ISerializable 接口,并返回序列化 Hashtable 所需的数据。Implements the ISerializable interface and returns the data needed to serialize the Hashtable.

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

一个 SerializationInfo 对象包含序列化 Hashtable 所需的信息。A SerializationInfo object containing the information required to serialize the Hashtable.

context
StreamingContext StreamingContext StreamingContext StreamingContext

一个 StreamingContext 对象包含与Hashtable 关联的序列化流的源和目标。A StreamingContext object containing the source and destination of the serialized stream associated with the Hashtable.

实现

异常

注解

此方法是 @no__t 0 操作,其中 n CountThis method is an O(n) operation, where n is Count.

安全性

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

适用于

另请参阅