NestedLocalTextsAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Indicates that this class contains local texts with optional subclasses that also contain local texts with keys joined by "." between each class name. The topmost class has no local text prefix by default and its name doesn't take part in local text key generation.
[AttributeUsage(AttributeTargets.Class)]
public sealed class NestedLocalTextsAttribute : Attribute
Public Members
| name | description |
|---|---|
| NestedLocalTextsAttribute() | Initializes a new instance of the NestedLocalTextsAttribute class. |
| LanguageID { get; set; } | Gets or sets the optional language identifier. |
| Permission { get; set; } | When set, and local texts sent to the client are filtered by permission (LocalTextPermissions:Enabled), the texts declared by this class are only sent to users with this permission, instead of the usual rules for their prefix. Use it to protect the texts of a module's pages (e.g. "Site.MyModule." texts), or to send a few row captions a profile page uses to users without access to the row. Use "*" for texts anonymous pages use. A text that a form or columns script the user can access uses is still sent. |
| Prefix { get; set; } | Gets or sets the optional local text prefix. |
See Also
- Source: NestedLocalTextsAttribute.cs