System.Xml.Serialization.XmlSerializationWriter.FromTime Method

Produces a string from a DateTime object.

Syntax

protected static string FromTime (DateTime value)

Parameters

value
A DateTime that is translated to a string.

Returns

A string representation of the DateTime object that shows the time but no date.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

The XmlSerializationWriter.FromTime(DateTime) method is static.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0