HtmlQuery.

SetContent(Nullable<bool>) Method

Summary

Sets the content of the result document(s) to the content of the corresponding query result, optionally specifying whether inner or outer HTML content should be used. The default is null, which does not add any content to the result documents (only metadata).
Assembly
Wyam.Html.dll
Namespace
Wyam.Html
Containing Type
HtmlQuery

Syntax

public HtmlQuery SetContent(Nullable<bool> outerHtml = true)

Parameters

Name Type Description
outerHtml Nullable<bool> If set to true, outer HTML content is used for the document content. If set to false, inner HTML content is used for the document content. If null, no document content is set.

Return Value

Type Description
HtmlQuery The current module instance.
GitHub