Skip to content

Commit 1f06172

Browse files
authored
Add .NET 6 exceptions (#5257)
1 parent fc51bfa commit 1f06172

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

xml/System.Windows.Forms/TableLayoutPanel.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,10 @@
234234
<remarks>
235235
<format type="text/markdown"><![CDATA[
236236
237-
## Remarks
238-
Setting this value will cause the panel to redraw itself and its contents.
239-
240-
241-
237+
## Remarks
238+
239+
Setting this value causes the panel to redraw itself and its contents.
240+
242241
## Examples
243242
The following code example sets the value of the <xref:System.Windows.Forms.TableLayoutPanel.BorderStyle%2A> property depending on the selected <xref:System.Windows.Forms.RadioButton>.
244243
@@ -247,6 +246,7 @@
247246
248247
]]></format>
249248
</remarks>
249+
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">.NET 6 and later versions only: The property value is not valid for the enumeration type.</exception>
250250
<altmember cref="P:System.Windows.Forms.TableLayoutPanel.BorderStyle" />
251251
<altmember cref="P:System.Windows.Forms.TableLayoutPanel.ColumnStyles" />
252252
<altmember cref="P:System.Windows.Forms.TableLayoutPanel.RowStyles" />

xml/System.Windows.Forms/TableLayoutSettings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@
357357
358358
]]></format>
359359
</remarks>
360-
<exception cref="T:System.ArgumentException">The property value is not valid for the enumeration type.</exception>
360+
<exception cref="T:System.ArgumentException">.NET Framework only: The property value is not valid for the enumeration type.</exception>
361+
<exception cref="T:System.ArgumentOutOfRangeException">.NET 5 and earlier versions only: The property value is not valid for the enumeration type.</exception>
362+
<exception cref="T:System.ComponentModel.InvalidEnumArgumentException">.NET 6 and later versions only: The property value is not valid for the enumeration type.</exception>
361363
<altmember cref="T:System.Windows.Forms.TableLayoutPanelGrowStyle" />
362364
<altmember cref="P:System.Windows.Forms.TableLayoutPanel.GrowStyle" />
363365
</Docs>

0 commit comments

Comments
 (0)