Skip to content

Commit 881670a

Browse files
authored
remove interactive from non-working sample (#3953)
1 parent 323fc13 commit 881670a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System/DateTime.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7749,7 +7749,7 @@ The value of the current <xref:System.DateTime> object is formatted using the pa
77497749
<block subset="none" type="usage">
77507750
<para>The <see cref="M:System.DateTime.ToString" /> method returns the string representation of the date and time in the calendar used by the current culture. If the value of the current <see cref="T:System.DateTime" /> instance is earlier than <see cref="P:System.Globalization.Calendar.MinSupportedDateTime" /> or later than <see cref="P:System.Globalization.Calendar.MaxSupportedDateTime" />, the method throws an <see cref="T:System.ArgumentOutOfRangeException" />. The following example provides an illustration. It attempts to format a date that is outside the range of the <see cref="T:System.Globalization.HijriCalendar" /> class when the current culture is Arabic (Syria).
77517751

7752-
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.tostring.argumentoutofrangeexception/cs/datetime.tostring.argumentoutofrangeexception2.cs" interactive="try-dotnet" id="Snippet2":::
7752+
:::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.datetime.tostring.argumentoutofrangeexception/cs/datetime.tostring.argumentoutofrangeexception2.cs" id="Snippet2":::
77537753
:::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.datetime.tostring.argumentoutofrangeexception/vb/datetime.tostring.argumentoutofrangeexception2.vb" id="Snippet2":::
77547754

77557755
</para>

0 commit comments

Comments
 (0)