Class UmbracoIdentityRole
Inheritance
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Infrastructure.dll
Syntax
public class UmbracoIdentityRole : IdentityRole, IRememberBeingDirty, ICanBeDirty
Constructors
View SourceUmbracoIdentityRole()
Declaration
public UmbracoIdentityRole()
UmbracoIdentityRole(string)
Declaration
public UmbracoIdentityRole(string roleName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | roleName |
Properties
View SourceBeingDirty
Gets the BeingDirty for change tracking
Declaration
protected BeingDirty BeingDirty { get; }
Property Value
| Type | Description |
|---|---|
| BeingDirty |
ConcurrencyStamp
A random value that should change whenever a role is persisted to the store
Declaration
public override string? ConcurrencyStamp { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
HasIdentity
Gets or sets a value indicating whether returns an Id has been set on this object this will be false if the object is new and not persisted to the database
Declaration
public bool HasIdentity { get; protected set; }
Property Value
| Type | Description |
|---|---|
| bool |
Id
Gets or sets the primary key for this role.
Declaration
public override string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets or sets the name for this role.
Declaration
public override string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
NormalizedName
Gets or sets the normalized name for this role.
Declaration
public override string? NormalizedName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceDisableChangeTracking()
Disables change tracking.
Declaration
public void DisableChangeTracking()
EnableChangeTracking()
Enables change tracking.
Declaration
public void EnableChangeTracking()
GetDirtyProperties()
Gets properties that are dirty.
Declaration
public IEnumerable<string> GetDirtyProperties()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> |
GetWereDirtyProperties()
Gets properties that were dirty.
Declaration
public IEnumerable<string> GetWereDirtyProperties()
Returns
| Type | Description |
|---|---|
| IEnumerable<string> |
IsDirty()
Determines whether the current entity is dirty.
Declaration
public bool IsDirty()
Returns
| Type | Description |
|---|---|
| bool |
IsPropertyDirty(string)
Determines whether a specific property is dirty.
Declaration
public bool IsPropertyDirty(string propName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propName |
Returns
| Type | Description |
|---|---|
| bool |
ResetDirtyProperties()
Resets dirty properties.
Declaration
public void ResetDirtyProperties()
ResetDirtyProperties(bool)
Resets dirty properties.
Declaration
public void ResetDirtyProperties(bool rememberDirty)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | rememberDirty | A value indicating whether to remember dirty properties. |
Remarks
When rememberDirty is true, dirty properties are saved so they can be checked with
WasDirty.
ResetWereDirtyProperties()
Resets properties that were dirty.
Declaration
public void ResetWereDirtyProperties()
WasDirty()
Determines whether the current entity is dirty.
Declaration
public bool WasDirty()
Returns
| Type | Description |
|---|---|
| bool |
Remarks
A property was dirty if it had been changed and the changes were committed.
WasPropertyDirty(string)
Determines whether a specific property was dirty.
Declaration
public bool WasPropertyDirty(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
A property was dirty if it had been changed and the changes were committed.
Events
View SourcePropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |