Class SupportsPermissionAttribute
Attribute indicating that the decorated element supports the enumerated permissions.
Inheritance
System.Object
System.Attribute
SupportsPermissionAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Security.Authorization.AttributedModel
Assembly: Kephas.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)]
public class SupportsPermissionAttribute : Attribute
Constructors
| Improve this Doc View SourceSupportsPermissionAttribute(String[])
Initializes a new instance of the SupportsPermissionAttribute class.
Declaration
public SupportsPermissionAttribute(params string[] permissions)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | permissions | A variable-length parameters list containing the supported permissions. |
SupportsPermissionAttribute(Type[])
Initializes a new instance of the SupportsPermissionAttribute class.
Declaration
public SupportsPermissionAttribute(params Type[] permissions)
Parameters
Type | Name | Description |
---|---|---|
System.Type[] | permissions | A variable-length parameters list containing the required permissions. |
Fields
| Improve this Doc View SourcePermissionsMetadataKey
The permissions metadata key.
Declaration
public const string PermissionsMetadataKey = "SupportsPermissions"
Field Value
Type | Description |
---|---|
System.String |
PermissionTypesMetadataKey
The permission types metadata key.
Declaration
public const string PermissionTypesMetadataKey = "SupportsPermissionTypes"
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourcePermissions
Gets the supported permissions.
Declaration
[MetadataValue("SupportsPermissions")]
public string[] Permissions { get; }
Property Value
Type | Description |
---|---|
System.String[] | The supported permissions. |
PermissionTypes
Gets the types of the required permissions.
Declaration
[MetadataValue("SupportsPermissionTypes")]
public Type[] PermissionTypes { get; }
Property Value
Type | Description |
---|---|
System.Type[] | The types of the required permissions. |