corelibraries-devexpress-dot-dataaccess-dot-wizard-dot-services-dot-iconnectionstorageservice.md
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
bool CanSaveConnection { get; }
ReadOnly Property CanSaveConnection As Boolean
| Type | Description |
|---|---|
| Boolean |
true , if a connection can be saved; otherwise, false.
|
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.
|
|
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