Documentation > CMS Template API Library > Out

CrownPeak.CMSAPI.Out

The Out object provides the CMS templates with a variety of output functions. Many provide a means to manipulate text for the template text response, wrapping and debugging

NameDescriptionType
DebugWriteLine(String)

Writes the text to the debug console

Method
DebugWriteLine(String,Object[])

Writes the formatted string to the debug console. Go to System, Tools, Debug Console to see the messages. They do not work when publishing.

Method
GetWrapContentPlaceholder()

Placeholder for wrapped content. Output from the calling template will be inserted here.

Method
StartCapture()

Starts text capture. All output from this point on is recorded and not sent back to the client browser or published

Method
StopCapture()

Stops capture mode and returns all the text printed between Out.StartCapture() and Out.StopCapture(). The text can then be processed and/or printed as needed.

Method
Wrap(String)

Passes the output of this render to another asset for further rendering

Method
Wrap(String,String)

Passes the output of this render to another asset for further rendering. This is marked obsolete, but might still be appropriate in environments where a VBScript wrapper is wrapping a C# template.

Method
Write(Boolean)

Writes the specified boolean to the output.

Method
Write(Object)

Writes the specified boolean to the output.

Method
Write(String)

Writes the specified text to the output.

Method
Write(String,Object[])

Appends the string to the output with the given format string.

Method
WriteLine(String)

Writes the line to the output.

Method
WriteLine(String,Object[])

Writes a new line to the output with the given format string.

Method
NewLine

The new line character(s) the CMS will use when rendering assets.

Property

Connect with CrownPeak