26 references to ToString
System.Data (1)
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
658
writer.WriteString(XmlConvert.
ToString
(Value, x_ISO8601_DateTimeFormat));
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
1589
xmlWriter.WriteAttributeString(facetName, XmlConvert.
ToString
((DateTime)facetValue, "yyyy-MM-dd HH:mm:ss.fffZ"));
System.IdentityModel (15)
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
98
wi.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
171
identity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (8)
1985
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
2877
writer.WriteAttributeString(Saml2Constants.Attributes.IssueInstant, XmlConvert.
ToString
(data.IssueInstant.ToUniversalTime(), DateTimeFormats.Generated));
3794
writer.WriteAttributeString(Saml2Constants.Attributes.AuthnInstant, XmlConvert.
ToString
(data.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated));
3805
writer.WriteAttributeString(Saml2Constants.Attributes.SessionNotOnOrAfter, XmlConvert.
ToString
(data.SessionNotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
4169
writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.
ToString
(data.NotBefore.Value.ToUniversalTime(), DateTimeFormats.Generated));
4175
writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.
ToString
(data.NotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
5405
writer.WriteAttributeString(Saml2Constants.Attributes.NotBefore, XmlConvert.
ToString
(data.NotBefore.Value.ToUniversalTime(), DateTimeFormats.Generated));
5411
writer.WriteAttributeString(Saml2Constants.Attributes.NotOnOrAfter, XmlConvert.
ToString
(data.NotOnOrAfter.Value.ToUniversalTime(), DateTimeFormats.Generated));
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
1407
subject.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(samlStatement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime, issuer));
2943
XmlConvert.
ToString
(statement.AuthenticationInstant.ToUniversalTime(), DateTimeFormats.Generated));
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (1)
250
new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(time.ToUniversalTime(), DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
104
windowsIdentity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
586
identity.AddClaim(new Claim(ClaimTypes.AuthenticationInstant, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated), ClaimValueTypes.DateTime));
System.ServiceModel (3)
System\ServiceModel\Security\IdentityModelServiceAuthorizationManager.cs (3)
238
AddAuthenticationInstantClaim(claimsIdentity, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated));
528
AddAuthenticationInstantClaim(claimsIdentity, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated));
533
AddAuthenticationInstantClaim(claimsIdentity, XmlConvert.
ToString
(DateTime.UtcNow, DateTimeFormats.Generated));
System.Xml (5)
System\Xml\Serialization\Xmlcustomformatter.cs (4)
74
return XmlConvert.
ToString
(value, "yyyy-MM-dd");
80
return XmlConvert.
ToString
(DateTime.MinValue + value.TimeOfDay, "HH:mm:ss.fffffffZ");
84
return XmlConvert.
ToString
(DateTime.MinValue + value.TimeOfDay, "HH:mm:ss.fffffffzzzzzz");
90
return XmlConvert.
ToString
(value, "yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz");
System\Xml\XmlConvert.cs (1)
757
return
ToString
(value, "yyyy-MM-ddTHH:mm:ss.fffffffzzzzzz");
WindowsBase (1)
Base\MS\Internal\IO\Packaging\PartBasedPackageProperties.cs (1)
897
_xmlWriter.WriteString(XmlConvert.
ToString
(((Nullable<DateTime>)entry.Value).Value.ToUniversalTime(), "yyyy-MM-ddTHH:mm:ss.fffffffZ"));