Class SecurityRole
Inheritance
System.Object
SecurityRole
Implements
System.ICloneable
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: Mediachase.Commerce.Security
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public class SecurityRole : ICloneable
Constructors
SecurityRole(String)
Initializes a new instance of the SecurityRole class.
Declaration
public SecurityRole(string roleName)
Parameters
Type | Name | Description |
---|---|---|
System.String | roleName | Name of the role. |
SecurityRole(String, IEnumerable<SecurityPermission>)
Initializes a new instance of the SecurityRole class.
Declaration
public SecurityRole(string roleName, IEnumerable<SecurityPermission> permissions)
Parameters
Type | Name | Description |
---|---|---|
System.String | roleName | Name of the role. |
System.Collections.Generic.IEnumerable<SecurityPermission> | permissions | The permisssions. |
Properties
Permissions
Gets or sets the permissions.
Declaration
public IEnumerable<SecurityPermission> Permissions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SecurityPermission> | The permissions. |
RoleName
Gets or sets the name of the role.
Declaration
public string RoleName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the role. |
Methods
Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Operators
Equality(SecurityRole, SecurityRole)
Declaration
public static bool operator ==(SecurityRole x, SecurityRole y)
Parameters
Type | Name | Description |
---|---|---|
SecurityRole | x | |
SecurityRole | y |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(SecurityRole, SecurityRole)
Declaration
public static bool operator !=(SecurityRole x, SecurityRole y)
Parameters
Type | Name | Description |
---|---|---|
SecurityRole | x | |
SecurityRole | y |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.ICloneable