IExecutionContext.

GetContentStream(string) Method

Summary

Gets a System.IO.Stream that can be used for document content. If content is not null, the stream is initialized with the specified content. It is prefered to use this method to obtain a stream over creating your own if the source of the content does not already provide one. The returned streams are optimized for memory usage and performance. The position is set to the beginning of the stream when returned.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Execution
Containing Type
IExecutionContext

Syntax

Stream GetContentStream(string content = null)

Parameters

Name Type Description
content string Content to initialize the stream with.

Return Value

Type Description
Stream A stream for document content.
GitHub