Skip to main content
A newer version of this page is available. .

IConnectionStorageService.CanSaveConnection Property

If implemented, determines whether a connection can be saved to the connection storage.

Namespace: DevExpress.DataAccess.Wizard.Services

Assembly: DevExpress.DataAccess.v19.2.dll

Declaration

bool CanSaveConnection { get; }

Property Value

Type Description
Boolean

true, if a connection can be saved; otherwise, false.

Remarks

To always serialize only database connection names, set the DataConnectionBase.StoreConnectionNameOnly property to true. This will guarantee that the database credentials are never exposed in report layout definitions.

When this property is set to false (the default value), the resulting behavior depends on the settings defined for the SqlWizardSettings.DatabaseCredentialsSavingBehavior and IConnectionStorageService.CanSaveConnection properties.

SensitiveInfoSavingBehavior

Behavior

SensitiveInfoSavingBehavior.Prompt

  • IConnectionStorageService.CanSaveConnection is set to true

    After an existing connection is selected (or a new one is specified), the Data Source wizard displays the following page.

    CanSaveConnection-true

  • IConnectionStorageService.CanSaveConnection is set to false

    After an existing connection is selected (or a new one is specified), the Data Source wizard displays the following page.

    CanSaveConnection-false

SensitiveInfoSavingBehavior.Always or SensitiveInfoSavingBehavior.Never

End-users cannot specify whether or not the database credentials will be stored along with serialized layouts, which depends on the specified DatabaseCredentialsSavingBehavior setting. After an existing connection is selected (or a new one is specified), the Data Source wizard displays the following page.

  • IConnectionStorageService.CanSaveConnection is set to true

    DatabaseCredentialsSavingOption-always-never

  • IConnectionStorageService.CanSaveConnection is set to false

    The wizard page enabling end-users to specify connection saving options is skipped and the next wizard page is displayed.

See Also