aspnet-devexpress-dot-web-dot-resolveaccounteventargs.md
Gets or sets an account for the account name specified by the ResolveAccountEventArgs.AccountName property.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public AccountBase Account { get; set; }
Public Property Account As AccountBase
| Type | Description |
|---|---|
| AccountBase |
An AccountBase object that specifies the account.
|
Use the ResolveAccountEventArgs.AccountName property to get an account name for which the account is to be created.
The following example illustrates how to use the AccountManager.ResolveAccount event.
<dx:ASPxFileManager ID="FileManager" runat="server" ProviderType="Dropbox">
<Settings RootFolder="~" ThumbnailFolder="~/Thumb" />
<SettingsDropbox AccountName="DropboxAccount#1" />
</dx:ASPxFileManager>
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");
}
Private Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
AccountManager.ResolveAccount += AddressOf AccountManager_ResolveAccount
End Sub
Private Sub AccountManager_ResolveAccount(ByVal sender As Object, ByVal e As ResolveAccountEventArgs)
If e.AccountName = "DropboxAccount#1" Then e.Account = New DropboxAccount(e.AccountName, "SecretAccessTokenValue#1")
End Sub
See Also