DateTime.ISerializable.GetObjectData(SerializationInfo, StreamingContext) DateTime.ISerializable.GetObjectData(SerializationInfo, StreamingContext) DateTime.ISerializable.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

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;
[System.Security.SecurityCritical]
void ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Sub GetObjectData (info As SerializationInfo, context As StreamingContext) Implements ISerializable.GetObjectData

Parameters

info
SerializationInfo SerializationInfo SerializationInfo

The object to populate with data.

context
StreamingContext StreamingContext StreamingContext

The destination for this serialization. (This parameter is not used; specify null.)

Implements

Exceptions

Remarks

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

Security

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

Applies to