Try our conversational search powered by Generative AI!

Class PermissionType

Describes a permission type

Inheritance
System.Object
PermissionType
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class PermissionType

Constructors

PermissionType(String, String)

Initializes a new instance of the PermissionType class.

Declaration
public PermissionType(string groupName, string name)
Parameters
Type Name Description
System.String groupName

The group name

System.String name

The name

Properties

GroupName

Name of the group of permissions

Declaration
public string GroupName { get; }
Property Value
Type Description
System.String
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.String
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.Object o

The o.

Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for the current System.Object.

Overrides
System.Object.GetHashCode()

Operators

Equality(PermissionType, PermissionType)

Declaration
public static bool operator ==(PermissionType a, PermissionType b)
Parameters
Type Name Description
PermissionType a
PermissionType b
Returns
Type Description
System.Boolean

Inequality(PermissionType, PermissionType)

Declaration
public static bool operator !=(PermissionType a, PermissionType b)
Parameters
Type Name Description
PermissionType a
PermissionType b
Returns
Type Description
System.Boolean

Extension Methods