Skip to content

Commit 75a8eb4

Browse files
authored
Merge pull request #7690 from David-Engel/patch-1
Document ArgumentException that can be thrown by SqlConnection
2 parents a9609bb + 470bfd7 commit 75a8eb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xml/System.Data.SqlClient/SqlConnection.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ using (SqlConnection connection = new SqlConnection(connectionString))
253253
254254
]]></format>
255255
</remarks>
256+
<exception cref="T:System.ArgumentException">The supplied connection string argument failed <see cref="T:System.Data.SqlClient.SqlConnection.ConnectionString" /> validation.</exception>
256257
<related type="Article" href="/dotnet/framework/data/adonet/connecting-to-a-data-source">Connecting to a Data Source (ADO.NET)</related>
257258
<related type="Article" href="/dotnet/framework/data/adonet/sql/">Using the .NET Framework Data Provider for SQL Server</related>
258259
<related type="Article" href="/dotnet/framework/data/adonet/ado-net-overview">ADO.NET Overview</related>
@@ -295,6 +296,7 @@ using (SqlConnection connection = new SqlConnection(connectionString))
295296
<param name="cred">To be added.</param>
296297
<summary>Initializes a new instance of the <see cref="T:System.Data.SqlClient.SqlConnection" /> class given a connection string, that does not use <see langword="Integrated Security = true" /> and a <see cref="T:System.Data.SqlClient.SqlCredential" /> object that contains the user ID and password.</summary>
297298
<remarks>To be added.</remarks>
299+
<exception cref="T:System.ArgumentException">The supplied connection string argument failed <see cref="T:System.Data.SqlClient.SqlConnection.ConnectionString" /> validation.</exception>
298300
<related type="Article" href="/dotnet/framework/data/adonet/ado-net-overview">ADO.NET Overview</related>
299301
</Docs>
300302
</Member>

0 commit comments

Comments
 (0)