You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/DateTime.xml
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9934,6 +9934,17 @@ The following example illustrates the <xref:System.DateTime.TryParse%28System.St
9934
9934
<returns>
9935
9935
<see langword="true" /> if <paramref name="s" /> was converted successfully; otherwise, <see langword="false" />.</returns>
9936
9936
<remarks>To be added.</remarks>
9937
+
<exception cref="T:System.FormatException">The length of <paramref name="format" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.
9938
+
9939
+
-or-
9940
+
9941
+
<paramref name="format" /> does not contain a valid custom format pattern.</exception>
9942
+
<exception cref="T:System.ArgumentException">
9943
+
<paramref name="style" /> is not a valid <see cref="T:System.Globalization.DateTimeStyles" /> value.
9944
+
9945
+
-or-
9946
+
9947
+
<paramref name="style" /> contains an invalid combination of <see cref="T:System.Globalization.DateTimeStyles" /> values (for example, both <see cref="F:System.Globalization.DateTimeStyles.AssumeLocal" /> and <see cref="F:System.Globalization.DateTimeStyles.AssumeUniversal" />).</exception>
9937
9948
</Docs>
9938
9949
</Member>
9939
9950
<Member MemberName="TryParseExact">
@@ -9999,8 +10010,15 @@ The following example illustrates the <xref:System.DateTime.TryParse%28System.St
9999
10010
<param name="result">When this method returns, contains the <see cref="T:System.DateTime" /> value equivalent to the date and time contained in <paramref name="s" />, if the conversion succeeded, or <see cref="F:System.DateTime.MinValue">DateTime.MinValue</see> if the conversion failed. The conversion fails if the <paramref name="s" /> parameter is <see langword="null" />, is <see cref="F:System.String.Empty" />, or does not contain a valid string representation of a date and time. This parameter is passed uninitialized.</param>
10000
10011
<summary>Converts the specified char span of a date and time to its <see cref="T:System.DateTime" /> equivalent and returns a value that indicates whether the conversion succeeded.</summary>
10001
10012
<returns>
10002
-
<see langword="true" /> if the <paramref name="s" /> parameter was converted successfully; otherwise, <see langword="false" />.</returns>
10013
+
<see langword="true" /> if <paramref name="s" /> was converted successfully; otherwise, <see langword="false" />.</returns>
10003
10014
<remarks>To be added.</remarks>
10015
+
<exception cref="T:System.FormatException">The length of an element in <paramref name="formats" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.</exception>
10016
+
<exception cref="T:System.ArgumentException">
10017
+
<paramref name="style" /> is not a valid <see cref="T:System.Globalization.DateTimeStyles" /> value.
10018
+
10019
+
-or-
10020
+
10021
+
<paramref name="style" /> contains an invalid combination of <see cref="T:System.Globalization.DateTimeStyles" /> values (for example, both <see cref="F:System.Globalization.DateTimeStyles.AssumeLocal" /> and <see cref="F:System.Globalization.DateTimeStyles.AssumeUniversal" />).</exception>
10004
10022
</Docs>
10005
10023
</Member>
10006
10024
<Member MemberName="TryParseExact">
@@ -10129,6 +10147,11 @@ The following example illustrates the <xref:System.DateTime.TryParse%28System.St
10129
10147
10130
10148
]]></format>
10131
10149
</remarks>
10150
+
<exception cref="T:System.FormatException">The length of <paramref name="format" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.
10151
+
10152
+
-or-
10153
+
10154
+
<paramref name="format" /> does not contain a valid custom format pattern.</exception>
10132
10155
<exception cref="T:System.ArgumentException">
10133
10156
<paramref name="style" /> is not a valid <see cref="T:System.Globalization.DateTimeStyles" /> value.
10134
10157
@@ -10269,6 +10292,7 @@ The following example illustrates the <xref:System.DateTime.TryParse%28System.St
10269
10292
10270
10293
]]></format>
10271
10294
</remarks>
10295
+
<exception cref="T:System.FormatException">The length of an element in <paramref name="formats" /> is 1, and it is not one of the format specifier characters defined for <see cref="T:System.Globalization.DateTimeFormatInfo" />.</exception>
10272
10296
<exception cref="T:System.ArgumentException">
10273
10297
<paramref name="style" /> is not a valid <see cref="T:System.Globalization.DateTimeStyles" /> value.
0 commit comments