Export (0) Print
Expand All

SqlConnectionStringBuilder.TrustServerCertificate Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets a value that indicates whether the channel will be encrypted while bypassing walking the certificate chain to validate trust.

Namespace: System.Data.SqlClient
Assembly: System.Data (in system.data.dll)

public bool TrustServerCertificate { get; set; 
/** @property */
public boolean get_TrustServerCertificate ()

/** @property */
public void set_TrustServerCertificate (boolean value)

public function get TrustServerCertificate () : boolean

public function set TrustServerCertificate (value : boolean)

Property Value

A Boolean. Recognized values are true, false, yes, and no.

When set to true, SSL is used to encrypt the channel while bypassing walking the certificate chain to validate trust. If TrustServerCertificate is set to true and Encrypt is set to false, the channel is not encrypted.

For more information, see "Encryption Hierarchy" and "Using Encryption without Validation" in SQL Server 2005 Books Online.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft