ConcatenatedScriptPart constructor
A part of a ConcatenatedScript, which may only be included when the current user has the permission for it.
public ConcatenatedScriptPart(Func<string> getScript, Func<bool>? hasPermission = null,
Func<string?>? getCacheSuffix = null)
| 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. |
See Also
- class ConcatenatedScriptPart