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

Definition

Implements the ISerializable interface and returns the data needed to serialize the DBNull object.

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)

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

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

context
StreamingContext StreamingContext StreamingContext StreamingContext

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

Implements

Exceptions

Security

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

Applies to

See also