LinkMenuExpand(external link)DocumentSearchCopyCopied

MySqlDataSourceBuilder.UseRemoteCertificateValidationCallback method

Sets the callback used to verify that the server’s certificate is valid.

public MySqlDataSourceBuilder UseRemoteCertificateValidationCallback(
    RemoteCertificateValidationCallback callback)
parameterdescription
callbackThe callback used to verify that the server’s certificate is valid.

Return Value

This builder, so that method calls can be chained.

Remarks

SslMode must be set to Preferred or Required in order for this delegate to be invoked. See the documentation for RemoteCertificateValidationCallback for more information on the values passed to this delegate.

See Also