Skip to content

LocalTextScript class

namespace: Serenity.Web   assembly: Serenity.Net.Web

Local text dynamic script.

public class LocalTextScript : DynamicScript, ICacheSuffix, INamedDynamicScript
parameter description
registry The text registry.
package The package key.
includes The includes regex.
languageId The language ID.
isPending true to include pending texts.
permissionFilter Optional filter for texts by the permissions of the current user.

Public Members

name description
LocalTextScript(…) Local text dynamic script.
CacheSuffix { get; } Gets the cache suffix, which identifies the texts the current user may see when texts are filtered by permission, otherwise empty.
ScriptName { get; }
override GetScript()
static GetLocalTextPackageScript(…) Gets the local text package script content. (2 methods)
static GetScriptName(…) Gets the script registration name for a local text package.

Exceptions

exception condition
ArgumentNullException registry or package is null.

Remarks

Initializes a new instance of the LocalTextScript class.

See Also