ConcatenatedScriptPart class
namespace: Serenity.Web assembly: Serenity.Net.Services
A part of a ConcatenatedScript, which may only be included when the current user has the permission for it.
public class ConcatenatedScriptPart
| parameter | description |
|---|---|
| getScript | Returns the content of the part |
| hasPermission | Returns true if the current user can access this part. When null, the part is always included. |
| getCacheSuffix | Returns the cache suffix of the part, e.g. when its content changes based on the current user, like another concatenated script with permission checked parts. When null, the content is considered not to vary. |
Public Members
| name | description |
|---|---|
| ConcatenatedScriptPart(…) | A part of a ConcatenatedScript, which may only be included when the current user has the permission for it. |
| GetCacheSuffix { get; } | Returns the cache suffix of the part when its content varies, e.g. based on the current user. |
| GetScript { get; } | Returns the content of the part |
| HasPermission { get; } | Returns true if the current user can access this part. When null, the part is always included. |
See Also
- Source: ConcatenatedScriptPart.cs