set_TrustServerCertificate()

SqlConnectionStringBuilder::set_TrustServerCertificate(bool) method

Determines whether connection is protected using trust server certificate.

void System::Data::SqlClient::SqlConnectionStringBuilder::set_TrustServerCertificate(bool value)

Arguments

ParameterTypeDescription
valueboolIf true, enables trust server certificate usage, otherwise disables it.

See Also