Skip to content

Commit 7b008fb

Browse files
authored
WinForms argument exceptions for .NET 8 (#8829)
1 parent 2a72bb1 commit 7b008fb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

xml/System.ComponentModel.Design/ExceptionCollection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
<param name="exceptions">An array of type <see cref="T:System.Exception" />, containing the objects to populate the collection.</param>
7777
<summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.ExceptionCollection" /> class.</summary>
7878
<remarks>To be added.</remarks>
79+
<exception cref="T:System.ArgumentException">.NET 8 and later only: The type of the array elements is not <see cref="T:System.Exception" />.</exception>
7980
</Docs>
8081
</Member>
8182
<Member MemberName="Exceptions">

xml/System.Windows.Forms/TableLayoutStyleCollection.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,11 @@
584584
]]></format>
585585
</remarks>
586586
<exception cref="T:System.ArgumentException">
587-
<paramref name="style" /> is already assigned to another owner. You must first remove it from its current location or clone it.</exception>
587+
<paramref name="style" /> is already assigned to another owner. You must first remove it from its current location or clone it.
588+
589+
-or-
590+
591+
.NET 8 and later only: <paramref name="style" /> can't be converted to type <see cref="T:System.Windows.Forms.TableLayoutStyle" />.</exception>
588592
</Docs>
589593
</Member>
590594
<Member MemberName="System.Collections.IList.IsFixedSize">
@@ -700,6 +704,7 @@
700704
701705
]]></format>
702706
</remarks>
707+
<exception cref="T:System.ArgumentException">.NET 8 and later only: The value to set can't be converted to type <see cref="T:System.Windows.Forms.TableLayoutStyle" />.</exception>
703708
</Docs>
704709
</Member>
705710
<Member MemberName="System.Collections.IList.Remove">
@@ -740,6 +745,7 @@
740745
741746
]]></format>
742747
</remarks>
748+
<exception cref="T:System.ArgumentException">.NET 8 and later only: <paramref name="style" /> can't be converted to type <see cref="T:System.Windows.Forms.TableLayoutStyle" />.</exception>
743749
</Docs>
744750
</Member>
745751
</Members>

0 commit comments

Comments
 (0)