Skip to content

Add Preview 5 ArgumentNullExceptions #4355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions xml/System.Windows.Forms.VisualStyles/VisualStyleRenderer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@
## Remarks
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.
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.
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.
## Examples
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.
Expand All @@ -101,8 +99,7 @@
-or-

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

Visual styles are not applied to the client area of application windows.</exception>
<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>
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="className" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Class">
Expand Down
2 changes: 2 additions & 0 deletions xml/System.Windows.Forms/ListBox+IntegerCollection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="owner" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Add">
Expand Down Expand Up @@ -285,6 +286,7 @@

]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="destination" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Count">
Expand Down
1 change: 1 addition & 0 deletions xml/System.Windows.Forms/ListViewGroup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@
<param name="context">The destination (see <see cref="T:System.Runtime.Serialization.StreamingContext" />) for this serialization.</param>
<summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the data needed to serialize the target object.</summary>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">.NET 5.0 and later: <paramref name="info" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Tag">
Expand Down