ConcatenatedScript constructor (1 of 2)
A dynamic script that is formed from the concatenation of other scripts. Parts that the current user does not have permission for are not included, and the cache suffix varies based on which parts are included, so that a separate content is cached for each such combination.
public ConcatenatedScript(IEnumerable<ConcatenatedScriptPart> parts, string separator = "\r\n;\r\n")
| parameter | description |
|---|---|
| parts | The script parts. |
| separator | The separator. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Script parts are null. |
Remarks
Creates a new instance of the class.
See Also
- class ConcatenatedScriptPart
- class ConcatenatedScript
ConcatenatedScript constructor (2 of 2)
Creates a new instance of the class with parts that are always included.
public ConcatenatedScript(IEnumerable<Func<string>> scriptParts, string separator = "\r\n;\r\n")
| parameter | description |
|---|---|
| scriptParts | The script parts. |
| separator | The separator. |
See Also
- class ConcatenatedScript