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 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 |
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. |
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 |