44 references to XmlDateTimeSerializationMode
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\XmlPropertyBag.cs (2)
176
return XmlConvert.ToDateTime(value,
XmlDateTimeSerializationMode
.RoundtripKind);
238
return XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.RoundtripKind);
System.Data (9)
fx\src\data\System\Data\Common\DateTimeStorage.cs (4)
190
retValue = XmlConvert.ToDateTime(s,
XmlDateTimeSerializationMode
.Unspecified);
193
retValue = XmlConvert.ToDateTime(s,
XmlDateTimeSerializationMode
.RoundtripKind);
201
retValue = XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.Local);
204
retValue = XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.RoundtripKind);
fx\src\data\System\Data\Common\SQLConvert.cs (4)
634
return new SqlDateTime(XmlConvert.ToDateTime((string)value,
XmlDateTimeSerializationMode
.RoundtripKind));
687
return XmlConvert.ToDateTime((string)value,
XmlDateTimeSerializationMode
.RoundtripKind);
723
return XmlConvert.ToString(((SqlDateTime)value).Value,
XmlDateTimeSerializationMode
.RoundtripKind);
769
return XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.RoundtripKind);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
633
DateTime dt = XmlConvert.ToDateTime(reader.ReadElementString(),
XmlDateTimeSerializationMode
.RoundtripKind);
System.Data.Services (3)
System\Data\Services\Parsing\WebConvert.cs (3)
298
targetValue = XmlConvert.ToDateTime(text,
XmlDateTimeSerializationMode
.RoundtripKind);
532
targetValue = XmlConvert.ToDateTime(text,
XmlDateTimeSerializationMode
.RoundtripKind);
637
result = XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.RoundtripKind);
System.Data.Services.Client (5)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
637
result = XmlConvert.ToString((DateTime)value,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Data\Services\Client\ClientConvert.cs (2)
152
return XmlConvert.ToDateTime(propertyValue,
XmlDateTimeSerializationMode
.RoundtripKind);
317
return XmlConvert.ToString(dt.Kind == DateTimeKind.Unspecified && atomDateConstruct ? new DateTime(dt.Ticks, DateTimeKind.Utc) : dt,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Data\Services\Client\DataServiceContext.cs (1)
2943
writer.WriteElementString(XmlConstants.AtomUpdatedElementName, XmlConstants.AtomNamespace, XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.RoundtripKind));
System\Data\Services\Client\Epm\EpmSyndicationContentSerializer.cs (1)
227
this.Target.WriteElementString(XmlConstants.AtomUpdatedElementName, XmlConstants.AtomNamespace, XmlConvert.ToString(DateTime.UtcNow,
XmlDateTimeSerializationMode
.RoundtripKind));
System.Runtime.Serialization (1)
System\Xml\XmlConverter.cs (1)
247
return XmlConvert.ToDateTime(value,
XmlDateTimeSerializationMode
.RoundtripKind);
System.ServiceModel (4)
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (2)
556
xml.WriteElementString("ValidFrom", XmlConvert.ToString(sessiontoken.ValidFrom,
XmlDateTimeSerializationMode
.Utc));
557
xml.WriteElementString("ValidTo", XmlConvert.ToString(sessiontoken.ValidTo,
XmlDateTimeSerializationMode
.Utc));
System\ServiceModel\Security\SecurityTimestamp.cs (2)
149
XmlConvert.ToString(this.CreationTimeUtc,
XmlDateTimeSerializationMode
.RoundtripKind),
150
XmlConvert.ToString(this.ExpiryTimeUtc,
XmlDateTimeSerializationMode
.RoundtripKind));
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\QueryStringConverter.cs (1)
214
return XmlConvert.ToString((DateTime) parameter,
XmlDateTimeSerializationMode
.RoundtripKind);
System.Xml (18)
System\Xml\BinaryXml\XmlBinaryReader.cs (1)
1069
return XmlConvert.ToDateTime(String.Empty,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Xml\Core\XmlReader.cs (2)
230
return XmlConvert.ToDateTime(InternalReadContentAsString(),
XmlDateTimeSerializationMode
.RoundtripKind);
397
return XmlConvert.ToDateTime(string.Empty,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Xml\Core\XmlWriter.cs (1)
287
WriteString(XmlConvert.ToString(value,
XmlDateTimeSerializationMode
.RoundtripKind));
System\Xml\Schema\Inference\Infer.cs (2)
1636
XmlConvert.ToDateTime(s,
XmlDateTimeSerializationMode
.RoundtripKind);
2346
XmlConvert.ToDateTime(s,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Xml\Serialization\Xmlcustomformatter.cs (2)
94
return XmlConvert.ToString(value,
XmlDateTimeSerializationMode
.RoundtripKind);
329
return XmlConvert.ToDateTime(value,
XmlDateTimeSerializationMode
.RoundtripKind);
System\Xml\XmlConvert.cs (10)
772
public static string ToString(DateTime value,
XmlDateTimeSerializationMode
dateTimeOption) {
774
case
XmlDateTimeSerializationMode
.Local:
778
case
XmlDateTimeSerializationMode
.Utc:
782
case
XmlDateTimeSerializationMode
.Unspecified:
786
case
XmlDateTimeSerializationMode
.RoundtripKind:
1265
public static DateTime ToDateTime(string s,
XmlDateTimeSerializationMode
dateTimeOption) {
1270
case
XmlDateTimeSerializationMode
.Local:
1274
case
XmlDateTimeSerializationMode
.Utc:
1278
case
XmlDateTimeSerializationMode
.Unspecified:
1282
case
XmlDateTimeSerializationMode
.RoundtripKind:
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
2938
return XmlConvert.ToString(value,
XmlDateTimeSerializationMode
.RoundtripKind);