Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
This method removes any Xml markup data in the EPT document and optionally any embedded Html markup as well.
Each data field will be separated by a new line.
The underlying data is not affected.
[This is preliminary documentation and is subject to change.]
Writes the content of the document as plain text to a Stream using the specified options and a specific encoding
Namespace: ContentStudio.Document.EPT
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public void WritePlainText( Stream output, string[] fieldsToOmit, bool stripHtml, Encoding encoding )
Parameters
- output
- Type: System.IOStream
A Stream to write to, this stream must be closed by the caller. This parameter cannot be null. - fieldsToOmit
- Type: SystemString
An array of case-sensitive field names to be omitted. This parameter can be null (Nothing in Visual Basic) to indicate that no field should be omitted.
You can use * as a wildchar at the end or the start of a field name to omit a group of fields. e.g. CS_* omits all meta data fields and *ID omits all field names that ends with ID. - stripHtml
- Type: SystemBoolean
A value that indicates whether embedded html formatted data should be cleaned as well. If true embedded html markup will be removed, false to preserve the content. - encoding
- Type: System.TextEncoding
The encoding to use when the data is written.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | output cannot be null. |
Remarks
See Also