DataConnectionBase.StoreConnectionNameOnly Property

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

Namespace: DevExpress.DataAccess

Assembly: DevExpress.DataAccess.v20.2.dll

Declaration

[Browsable(false)]
public bool StoreConnectionNameOnly { get; set; }
<Browsable(False)>
Public Property StoreConnectionNameOnly As Boolean

Property Value

Type Description
Boolean

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

Remarks

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

Behavior

SensitiveInfoSavingBehavior.Prompt

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