File tree 2 files changed +15
-0
lines changed
src/Microsoft.Data.SqlClient
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1037,6 +1037,10 @@ public SqlConnectionStringBuilder(string connectionString) { }
1037
1037
[ System . ComponentModel . DisplayNameAttribute ( "Encrypt" ) ]
1038
1038
[ System . ComponentModel . RefreshPropertiesAttribute ( System . ComponentModel . RefreshProperties . All ) ]
1039
1039
public SqlConnectionEncryptOption Encrypt { get { throw null ; } set { } }
1040
+ /// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnectionStringBuilder.xml' path='docs/members[@name="SqlConnectionStringBuilder"]/HostNameInCertificate/*'/>
1041
+ [ System . ComponentModel . DisplayNameAttribute ( "Host Name In Certificate" ) ]
1042
+ [ System . ComponentModel . RefreshPropertiesAttribute ( System . ComponentModel . RefreshProperties . All ) ]
1043
+ public string HostNameInCertificate { get { throw null ; } set { } }
1040
1044
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnectionStringBuilder.xml' path='docs/members[@name="SqlConnectionStringBuilder"]/Enlist/*'/>
1041
1045
[ System . ComponentModel . DisplayNameAttribute ( "Enlist" ) ]
1042
1046
[ System . ComponentModel . RefreshPropertiesAttribute ( System . ComponentModel . RefreshProperties . All ) ]
Original file line number Diff line number Diff line change @@ -360,6 +360,17 @@ public void SetEncryptOnConnectionBuilderMapsToString()
360
360
}
361
361
}
362
362
363
+ [ Fact ]
364
+ public void AbleToSetHostNameInCertificate ( )
365
+ {
366
+ var testhostname = "somedomain.net" ;
367
+ var builder = new SqlConnectionStringBuilder
368
+ {
369
+ HostNameInCertificate = testhostname
370
+ } ;
371
+ Assert . Equal ( testhostname , builder . HostNameInCertificate ) ;
372
+ }
373
+
363
374
[ Fact ]
364
375
public void ConnectionBuilderEncryptBackwardsCompatibility ( )
365
376
{
You can’t perform that action at this time.
0 commit comments