Skip to main content

IConnectionStorageService.CanSaveConnection Property

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

Namespace: DevExpress.DataAccess.Wizard.Services

Assembly: DevExpress.DataAccess.v24.1.dll

NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap

Declaration

bool CanSaveConnection { get; }

Property Value

Type Description
Boolean

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

Remarks

Enable the DataConnectionBase.StoreConnectionNameOnly property when you implement the IConnectionStorageService interface to serialize database connection names only. This behavior does not expose database credentials in report layout definitions.

When this property is disabled, the behavior depends on the SqlWizardSettings.DatabaseCredentialsSavingBehavior and IConnectionStorageService.CanSaveConnection property values.

SensitiveInfoSavingBehavior

Behavior

SensitiveInfoSavingBehavior.Prompt

  • IConnectionStorageService.CanSaveConnection is set to true

    After users select a connection or specify a new one, the Data Source Wizard displays the following page.

    CanSaveConnection-true

  • IConnectionStorageService.CanSaveConnection is set to false

    After users select a connection or specify a new one, the Data Source Wizard displays the following page.

    CanSaveConnection-false

SensitiveInfoSavingBehavior.Always or SensitiveInfoSavingBehavior.Never

Users cannot specify whether or not to store database credentials with serialized layouts. After they select a connection or specify a new one, 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 skips the page that allows users to specify how to save connections ving options is skipped and displays the next page.

See Also