Class PermissionLocalizer
- Assembly
- TimeCockpit.Data.dll
class representing localization information for a permission.
public class PermissionLocalizer : ModelElementLocalizer
- Inheritance
-
ObjectPermissionLocalizer
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
- Extension Methods
Constructors
PermissionLocalizer(String)
Initializes a new instance of the PermissionLocalizer class.
public PermissionLocalizer(string name)
Parameters
nameStringthe name of the permission.
PermissionLocalizer(PermissionLocalizer)
Initializes a new instance of the PermissionLocalizer class.
public PermissionLocalizer(PermissionLocalizer source)
Parameters
sourcePermissionLocalizerthe source to copy from.
Properties
ErrorMessage
Gets the localization information for the error message property.
public StringLocalizer ErrorMessage { get; }
Property Value
Methods
Accept(LocalizerVisitor)
accepts the localizer.
public override void Accept(LocalizerVisitor visitor)
Parameters
visitorLocalizerVisitorthe visitor to accept.
Clone()
clones this instances.
public override ModelElementLocalizer Clone()
Returns
- ModelElementLocalizer
Returns a copy-constructed instance of itself.
MergeFrom(ModelElementLocalizer)
merges from the source
public override void MergeFrom(ModelElementLocalizer source)
Parameters
sourceModelElementLocalizerthe source to merge from.
RemoveLocalizations()
removes all cultures from the elements specific to this localizer.
public override void RemoveLocalizations()