[This is preliminary documentation and is subject to change.]
The AdHocPermission type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | AdHocPermission | Initializes a new instance of the AdHocPermission class |
Methods
Name | Description | |
---|---|---|
![]() | Check(ISession) |
Checks the permission for requested action as specified in particular permission .ctor.
The check is performed in the scope of supplied session, or if no session was supplied then
current execution context session is assumed
(Inherited from Permission.) |
![]() | Check(User) |
Shortcut method that creates a temp/mock BaseSession object thus checking permission in mock BaseSession context
(Inherited from Permission.) |
![]() | DoCheckAccessLevel |
Override to perform access level checks per user's AccessLevel instance.
True if accessLevel satisfies permission requirements.
The default implementation checks the access.Level
(Inherited from Permission.) |
![]() | ![]() | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Returns the hash code for this instance. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from ![]() |
![]() | ![]() | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ToString | (Inherited from Permission.) |
Extension Methods
Properties
Name | Description | |
---|---|---|
![]() | Description |
Returns the permission description - base implementation returns permission name
(Inherited from Permission.) |
![]() | FullPath |
Returns full permission path - a concatenation of its path and name
(Inherited from Permission.) |
![]() | Level |
Specifies the minimum access level for the permission check to pass
(Inherited from Permission.) |
![]() | Name |
Returns the permission name - the last segment of the path
(Overrides Permission Name.) |
![]() | Path |
Returns a top-rooted path to this permission (without name)
(Overrides Permission Path.) |
![]() | ![]() | When implemented in a derived class, gets a unique identifier for this (Inherited from ![]() ![]() |
See Also