Skip to content

Commit 19caca2

Browse files
authored
add preview 5 exceptions (#4355)
1 parent 1ac3f3d commit 19caca2

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

xml/System.Windows.Forms.VisualStyles/VisualStyleRenderer.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@
7979
## Remarks
8080
This constructor uses the <xref:System.Windows.Forms.VisualStyles.VisualStyleElement.ClassName%2A?displayProperty=nameWithType>, <xref:System.Windows.Forms.VisualStyles.VisualStyleElement.Part%2A?displayProperty=nameWithType>, and <xref:System.Windows.Forms.VisualStyles.VisualStyleElement.State%2A?displayProperty=nameWithType> properties of the `element` parameter to initialize the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.Class%2A>, <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.Part%2A>, and <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.State%2A> properties.
8181
82-
Before using this constructor, you should call the `static`<xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined%2A> method to verify whether the current visual style provides a definition for the element specified by the `element` parameter.
83-
84-
82+
Before using this constructor, you should call the `static`<xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.IsElementDefined%2A> method to verify whether the current visual style provides a definition for the element specified by the `element` parameter.
8583
8684
## Examples
8785
The following code example demonstrates how to use the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer.%23ctor%28System.Windows.Forms.VisualStyles.VisualStyleElement%29> constructor to create a <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer>. This code example is part of a larger code example provided for the <xref:System.Windows.Forms.VisualStyles.VisualStyleRenderer> class overview.
@@ -101,8 +99,7 @@
10199
-or-
102100

103101
Visual styles are not applied to the client area of application windows.</exception>
104-
<exception cref="T:System.ArgumentException">
105-
<paramref name="element" /> is not defined by the current visual style.</exception>
102+
<exception cref="T:System.ArgumentException"><paramref name="element" /> is not defined by the current visual style.</exception>
106103
</Docs>
107104
</Member>
108105
<Member MemberName=".ctor">
@@ -149,6 +146,7 @@
149146

150147
Visual styles are not applied to the client area of application windows.</exception>
151148
<exception cref="T:System.ArgumentException">The combination of <paramref name="className" />, <paramref name="part" />, and <paramref name="state" /> is not defined by the current visual style.</exception>
149+
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="className" /> is <see langword="null" />.</exception>
152150
</Docs>
153151
</Member>
154152
<Member MemberName="Class">

xml/System.Windows.Forms/ListBox+IntegerCollection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
7373
]]></format>
7474
</remarks>
75+
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="owner" /> is <see langword="null" />.</exception>
7576
</Docs>
7677
</Member>
7778
<Member MemberName="Add">
@@ -285,6 +286,7 @@
285286
286287
]]></format>
287288
</remarks>
289+
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="destination" /> is <see langword="null" />.</exception>
288290
</Docs>
289291
</Member>
290292
<Member MemberName="Count">

xml/System.Windows.Forms/ListViewGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@
459459
<param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param>
460460
<summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the target object.</summary>
461461
<remarks>To be added.</remarks>
462+
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="info" /> is <see langword="null" />.</exception>
462463
</Docs>
463464
</Member>
464465
<Member MemberName="Tag">

0 commit comments

Comments
 (0)