Skip to content

PropertyItemsScript class

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

Abstract base class for ColumnsScript and FormScript.

public abstract class PropertyItemsScript : IGetScriptData, INamedDynamicScript
parameter description
scriptName The script name.
type The columns or form type.
propertyProvider The property item provider.
serviceProvider The service provider.

Public Members

name description
Expiration { get; set; }
GroupKey { get; set; }
Permission { get; set; } Permission required to access this script. When null, the script is public.
ScriptName { get; }
event ScriptChanged
Changed()
GetScript()
GetScriptData()
HasPermission(…) Returns true if Permission is null, or the current user has it.
static Compact(…) Generates a compact version of the scripts.
static GetDefaultPermission(…) Gets the default permission for a form or columns type, which is the ReadPermission attribute on the row type specified with the BasedOnRow attribute. As with rows, if the row has no ReadPermission, access is denied.

Protected Members

name description
PropertyItemsScript(…) Abstract base class for ColumnsScript and FormScript.
static CheckName(…) Checks the name if it is empty or null.

Remarks

Creates a new instance of the class.

See Also