PageAuthorizeAttribute constructor (1 of 6)
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates an instance of the PageAuthorizeAttribute.
public PageAuthorizeAttribute()
See Also
- class PageAuthorizeAttribute
PageAuthorizeAttribute constructor (2 of 6)
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates an instance of the PageAuthorizeAttribute with the passed permission key.
public PageAuthorizeAttribute(object permission)
| parameter | description |
|---|---|
| permission | The permission key |
See Also
- class PageAuthorizeAttribute
PageAuthorizeAttribute constructor (3 of 6)
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates an instance of the PageAuthorizeAttribute, while reading the permission key from the NavigationPermissionAttribute or ReadPermissionAttribute of the source type.
public PageAuthorizeAttribute(Type sourceType)
| parameter | description |
|---|---|
| sourceType |
See Also
- class PageAuthorizeAttribute
PageAuthorizeAttribute constructor (4 of 6)
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates an instance of the PageAuthorizeAttribute with a permission key generated by joining the passed permissions with a colon (:), e.g. "module:permission".
public PageAuthorizeAttribute(object module, object permission)
| parameter | description |
|---|---|
| module | Module |
| permission | Permission key |
See Also
- class PageAuthorizeAttribute
PageAuthorizeAttribute constructor (5 of 6)
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates a new instance of the class
protected PageAuthorizeAttribute(Type sourceType, params Type[] attributeTypes)
| parameter | description |
|---|---|
| sourceType | Source type |
| attributeTypes | Attribute types |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Source type or attribute types is null |
| ArgumentOutOfRangeException | One of the attribute types is not a subclass of PermissionAttributeBase. |
See Also
- class PageAuthorizeAttribute
PageAuthorizeAttribute constructor (6 of 6)
namespace: Serenity.Web assembly: Serenity.Net.Web
Creates an instance of the PageAuthorizeAttribute with a permission key generated by joining the passed permissions with a colon (:), e.g. "module:submodule:permission".
public PageAuthorizeAttribute(object module, object submodule, object permission)
| parameter | description |
|---|---|
| module | Module |
| submodule | Submodule |
| permission | Permission key |
See Also
- class PageAuthorizeAttribute