Skip to content

Commit 7a2bcf4

Browse files
authored
Corrected description for indexer (dotnet#10486)
1 parent a912c46 commit 7a2bcf4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xml/System.Data.Common/DbConnectionStringBuilder.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ builder2.EquivalentTo(builder3) = False
11231123
<Docs>
11241124
<param name="keyword">The key of the item to get or set.</param>
11251125
<summary>Gets or sets the value associated with the specified key.</summary>
1126-
<value>The value associated with the specified key. If the specified key is not found, trying to get it returns a null reference (<see langword="Nothing" /> in Visual Basic), and trying to set it creates a new element using the specified key.
1126+
<value>The value associated with the specified key. If the specified key is not found, trying to get it throws an <see cref="T:System.ArgumentException" />, and trying to set it creates a new element using the specified key.
11271127

11281128
Passing a null (<see langword="Nothing" /> in Visual Basic) key throws an <see cref="T:System.ArgumentNullException" />. Assigning a null value removes the key/value pair.</value>
11291129
<remarks>
@@ -1142,6 +1142,8 @@ builder2.EquivalentTo(builder3) = False
11421142
11431143
]]></format>
11441144
</remarks>
1145+
<exception cref="T:System.ArgumentException">
1146+
The value for <paramref name="keyword" /> has not been set in the collection.</exception>
11451147
<exception cref="T:System.ArgumentNullException">
11461148
<paramref name="keyword" /> is a null reference (<see langword="Nothing" /> in Visual Basic).</exception>
11471149
<exception cref="T:System.NotSupportedException">The property is set, and the <see cref="T:System.Data.Common.DbConnectionStringBuilder" /> is read-only.

0 commit comments

Comments
 (0)