Back to Devexpress

IConnectionStorageService.CanSaveConnection Property

corelibraries-devexpress-dot-dataaccess-dot-wizard-dot-services-dot-iconnectionstorageservice.md

latest3.1 KB
Original Source

IConnectionStorageService.CanSaveConnection Property

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

Namespace : DevExpress.DataAccess.Wizard.Services

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
bool CanSaveConnection { get; }
vb
ReadOnly Property CanSaveConnection As Boolean

Property Value

TypeDescription
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

  • IConnectionStorageService.CanSaveConnection is set to 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

  • IConnectionStorageService.CanSaveConnection is set to false

|

See Also

IConnectionStorageService Interface

IConnectionStorageService Members

DevExpress.DataAccess.Wizard.Services Namespace