System.DateTime.System.Runtime.Serialization.ISerializable.GetObjectData Method

Populates a System.Runtime.Serialization.SerializationInfo object with the data needed to serialize the current DateTime object.

Syntax

void System.Runtime.Serialization.ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
The object to populate with data.
context
The destination for this serialization. (This parameter is not used; specify null.)

Remarks

This method populates the info parameter with the DateTime.Ticks and DateTime.Kind property values.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0