DateTime.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Metoda

Definicja

Wypełnia SerializationInfo obiekt danymi wymaganymi do serializacji bieżącego DateTime obiektu.Populates a SerializationInfo object with the data needed to serialize the current DateTime object.

 virtual void System.Runtime.Serialization.ISerializable.GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context) = System::Runtime::Serialization::ISerializable::GetObjectData;
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
abstract member System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.System.Runtime.Serialization.ISerializable.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

Parametry

info
SerializationInfo

Obiekt używany do wypełniania danymi.The object to populate with data.

context
StreamingContext

Lokalizacja docelowa tej serializacji.The destination for this serialization. (Ten parametr nie jest używany; Określ null .)(This parameter is not used; specify null.)

Implementuje

Atrybuty

Wyjątki

info to null.info is null.

Uwagi

Ta metoda wypełnia info parametr Ticks Kind wartościami właściwości i.This method populates the info parameter with the Ticks and Kind property values.

Dotyczy