Click or drag to resize
TreeNodeGetPreviewLink Method
Returns document preview link.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax
C#
public virtual string GetPreviewLink(
	string userName,
	bool ensureQueryHash = false,
	bool readonlyMode = true,
	bool embededInAdministration = false
)

Parameters

userName
Type: SystemString
User name
ensureQueryHash (Optional)
Type: SystemBoolean
Indicates if query string hash should be added. For content-only nodes, hash is added always.
readonlyMode (Optional)
Type: SystemBoolean
Indicates if preview link should be in read only mode.
embededInAdministration (Optional)
Type: SystemBoolean
Indicates if page is embedded in administration inside an iframe.

Return Value

Type: String
See Also