ConnectionPropertiesPage.TrustServerCertificate Property
Gets or sets a value that indicates whether the channel will be encrypted when certificate chain bypass is performed to validate trust.
Namespace: DevExpress.Xpf.DataAccess.DataSourceWizard
Assembly: DevExpress.Xpf.DataAccess.v24.2.dll
NuGet Package: DevExpress.Wpf.Reporting
Declaration
Property Value
Type | Description |
---|---|
DefaultBoolean | A DefaultBoolean enumeration value that specifies whether the channel will be encrypted when certificate chain bypass is performed to validate trust. |
Available values:
Name | Description | Return Value |
---|---|---|
True | The value is true. |
|
False | The value is false. |
|
Default | The value is specified by a global option or a higher-level object. |
|
Remarks
This property corresponds to the “TrustServerCertificate” key within the connection string. When you set TrustServerCertificate
to True
, the transport layer uses SSL to encrypt the channel and bypass walking the certificate chain to validate trust.
If the property value is Default
, the connection uses the option set by the provider (Microsoft.Data.SqlClient
or System.Data.SqlClient
).