Exago .NET API Documentation
Deactivate Method
Example 
WebReports.Api.Roles Namespace > RoleCollection Class : Deactivate Method

Mark the currently active role as no longer active.

Any settings (including General Settings, data object or folder tenancy, etc...) changed by activating the role will remain in place until the session ends.
Syntax
public void Deactivate()
Example
Check to see if a role is active in the system, if it is, deactivate it.
if (api.Roles.IsActiveRole)
{
	api.Roles.Deactivate();
}
See Also

Reference

RoleCollection Class
RoleCollection Members