Tab

AccountManager.ResolveAccount Event

Occurs on the server side if there is no registered account for the account name specified in the control’s AccountName property.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public static event ResolveAccountEventHandler ResolveAccount

Event Data

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

Property Description
Account Gets or sets an account for the account name specified by the ResolveAccountEventArgs.AccountName property.
AccountName Gets the name of the account for which the account should be dynamically created.

Remarks

The ResolveAccount event is used to dynamically create and use an account when the application is run.

Use the ResolveAccountEventArgs.AccountName property to get an account name for which the account should be dynamically created. The ResolveAccountEventArgs.Account property specifies an account for the account name specified by the ResolveAccountEventArgs.AccountName property.

Example

The following example illustrates how to use the AccountManager.ResolveAccount event.

void Application_Start(object sender, EventArgs e) {
    AccountManager.ResolveAccount += AccountManager_ResolveAccount;
}
void AccountManager_ResolveAccount(object sender, ResolveAccountEventArgs e) {
    if(e.AccountName == "DropboxAccount#1")
        e.Account = new DropboxAccount(e.AccountName, "SecretAccessTokenValue#1");
}
See Also