ServiceAuthorizeAttribute constructor (1 of 6)
Initializes a new instance of the ServiceAuthorizeAttribute class.
public ServiceAuthorizeAttribute()
See Also
ServiceAuthorizeAttribute constructor (2 of 6)
Initializes an instance of the ServiceAuthorizeAttribute class with the passed permission.
public ServiceAuthorizeAttribute(object permission)
| parameter | description |
|---|---|
| permission | The permission key. |
See Also
ServiceAuthorizeAttribute constructor (3 of 6)
Initializes an instance of the ServiceAuthorizeAttribute class, while deriving the permission key from the passed type's ReadPermissionAttribute.
public ServiceAuthorizeAttribute(Type sourceType)
| parameter | description |
|---|---|
| sourceType | The source type. |
See Also
ServiceAuthorizeAttribute constructor (4 of 6)
Initializes an instance of the ServiceAuthorizeAttribute class with a permission key generated by joining the passed permissions with a colon (:), e.g. module:permission.
public ServiceAuthorizeAttribute(object module, object permission)
| parameter | description |
|---|---|
| module | The module. |
| permission | The permission key. |
See Also
ServiceAuthorizeAttribute constructor (5 of 6)
Initializes an instance of the service authorize attribute while trying to determine the permission key from one of the permission attribute types the source type has.
protected ServiceAuthorizeAttribute(Type sourceType, params Type[] attributeTypes)
| parameter | description |
|---|---|
| sourceType | The source type. |
| attributeTypes | The attribute types to check in order. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Source type or attribute types is null. |
| ArgumentOutOfRangeException | One of the types is not a subclass of PermissionAttributeBase. |
See Also
ServiceAuthorizeAttribute constructor (6 of 6)
Initializes an instance of the ServiceAuthorizeAttribute class with a permission key generated by joining the passed permissions with a colon (:), e.g. module:submodule:permission.
public ServiceAuthorizeAttribute(object module, object submodule, object permission)
| parameter | description |
|---|---|
| module | The module. |
| submodule | The submodule. |
| permission | The permission key. |