Skip to main content

DataConnectionBase.StoreConnectionNameOnly Property

Specifies whether to serialize any connection settings except for the data connection name.

Namespace: DevExpress.DataAccess

Assembly: DevExpress.DataAccess.v23.2.dll

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


public bool StoreConnectionNameOnly { get; set; }

Property Value

Type Description

true, to store only the name of a data connection; otherwise, false.


When this option is enabled, the connection parameters are restored from the application configuration file by using the deserialized connection name.

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.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.

See Also