Menu

AdminConstraint

Steven Bey

AdminConstraint

AdminConstraint Constructor

Initialises a new instance of the AdminConstraint class.

Syntax

public AdminConstraint()

Remarks

AdminConstraint restricts access to authenticated users in the 'Admin', 'Administrator' or 'Administration' role.

Examples

The following example shows the instantiation of the AdminConstraint.

new ErrorLogRoute(provider, new AdminConstraint());

Related

Wiki: Restricting access to the ELFAR web pages

MongoDB Logo MongoDB