Hashtable.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

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)

Parameters

info
SerializationInfo

A SerializationInfo object containing the information required to serialize the Hashtable.

context
StreamingContext

A StreamingContext object containing the source and destination of the serialized stream associated with the Hashtable.

Implements

Attributes

Exceptions

info is null.

The collection was modified.

Remarks

This method is an O(n) operation, where n is Count.

Security

SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to

See also