XafApplication.CreateCustomLogonParameterStore Event

Occurs both when reading and writing the last logon parameters, before creating the logon parameters storage.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public event EventHandler<CreateCustomLogonParameterStoreEventArgs> CreateCustomLogonParameterStore
Public Event CreateCustomLogonParameterStore As EventHandler(Of CreateCustomLogonParameterStoreEventArgs)

The event handler receives an argument of the CreateCustomLogonParameterStoreEventArgs type.

Property Description
Storage

Specifies a SettingStorage object which is used to load and save logon parameters.

A logon Window contains a View, which represents a Security System's logon parameters. By default, this View shows the last user's parameters. To save and load these parameters, a special storage is created. The storage which is used in a Windows Forms application saves (or loads) parameters to the LogonParameters file. The storage which is used in an ASP.NET application, saves (or loads) parameters to cookies. You can customize the default behavior by using another storage. For this purpose, handle the CreateCustomLogonParameterStore event. In the handler, create the required storage. The following storage types are available:

Class Storage
NullSettingsStorage Logon parameters are not saved anywhere, and consequently, are not loaded from anywhere.
SettingsStorageOnHashtable Hash table.
SettingsStorageOnRegistry Registry.
SettingsStorageOnDictionary LogonParameters file. Used in a Windows Forms application, by default.
SettingsStorageOnCookies Cookies. Used in the ASP.NET application, by default.

Assign the storage you have created to the handler's CreateCustomLogonParameterStoreEventArgs.Storage parameter.

To prohibit the creation of the default storage object, set the handler's Handled parameter to true.

See Also