Skip to content

NotDuringImpersonationAttribute class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Marks the actions, or the controllers, that are not available while the user is impersonated, e.g. the ones on the security of the account, like the password or the two-factor authentication, which the filter of Pro's AddImpersonation refuses.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public sealed class NotDuringImpersonationAttribute : Attribute

Public Members

name description
NotDuringImpersonationAttribute() The default constructor.

See Also