DBNull.GetObjectData(SerializationInfo, StreamingContext) Metoda

Definicja

Implementuje ISerializable interfejs i zwraca dane, które są konieczne do serializacji DBNull obiektu.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);
public 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
[<System.Security.SecurityCritical>]
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)

Parametry

info
SerializationInfo

SerializationInfoObiekt zawierający informacje wymagane do serializacji DBNull obiektu.A SerializationInfo object containing information required to serialize the DBNull object.

context
StreamingContext

StreamingContextObiekt zawierający źródło i miejsce docelowe serializowanego strumienia skojarzonego z DBNull obiektem.A StreamingContext object containing the source and destination of the serialized stream associated with the DBNull object.

Implementuje

Atrybuty

Wyjątki

info to null.info is null.

Dotyczy

Zobacz też