Class PermissionType
Describes a permission type
Inheritance
System.Object
PermissionType
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class PermissionType : Object
Constructors
PermissionType(String, String)
Initializes a new instance of the Permission
Declaration
public PermissionType(string groupName, string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
groupName | The group name |
System. |
name | The name |
Properties
GroupName
Name of the group of permissions
Declaration
public string GroupName { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Must begin with a letter and only contain alphanumeric characters (a-z, A-Z, 0-9), '_', ':' and '-'"
Name
Name of the permission type, has to be unique within group
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Must begin with a letter and only contain alphanumeric characters (a-z, A-Z, 0-9), '_', ':' and '-'"
Methods
Equals(Object)
Returns true if the objects o is equal with the instance of the PermissionType.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System. |
o | The o. |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A hash code for the current System. |
Operators
Equality(PermissionType, PermissionType)
Declaration
public static bool operator ==(PermissionType a, PermissionType b)
Parameters
Type | Name | Description |
---|---|---|
Permission |
a | |
Permission |
b |
Returns
Type | Description |
---|---|
System. |
Inequality(PermissionType, PermissionType)
Declaration
public static bool operator !=(PermissionType a, PermissionType b)
Parameters
Type | Name | Description |
---|---|---|
Permission |
a | |
Permission |
b |
Returns
Type | Description |
---|---|
System. |