Back to Devexpress

XafApplication.CreateCustomLogonParameterStore Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-fa9b88d9.md

latest3.9 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

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

Event Data

The CreateCustomLogonParameterStore event's data class is CreateCustomLogonParameterStoreEventArgs. The following properties provide information specific to this event:

PropertyDescription
HandledGets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.
StorageSpecifies a SettingStorage object which is used to load and save logon parameters.

Remarks

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. ASP.NET Core Blazor applications do not store the last user’s logon parameters anywhere. 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:

ClassStorage
NullSettingsStorageLogon parameters are not saved anywhere, and consequently, are not loaded from anywhere.
SettingsStorageOnHashtableHash table.
SettingsStorageOnRegistryRegistry.
SettingsStorageOnDictionaryLogonParameters file. Used in a Windows Forms application.

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

LastLogonParametersReading

LastLogonParametersRead

LastLogonParametersWriting

ICustomObjectSerialize

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace