AnswersSource Constructor (FuncStream, Boolean)
Constructor that takes a callback

Namespace: HotDocs.Cloud.Client
Assembly: HotDocs.Cloud.Client (in HotDocs.Cloud.Client.dll) Version: 1.0.5652.20312
Syntax

public AnswersSource(
	Func<Stream> streamGetter,
	bool closeStreams = true
)

Parameters

streamGetter
Type: SystemFuncStream
Callback that will be called repeatedly, once for each answerset. Return null when all answersets have been provided.
closeStreams (Optional)
Type: SystemBoolean
Indicates whether the client should close each stream after reading it
Examples

int i=0;
var a = new AnswersSource(() => (i != filePaths.Length ? new FileStream(filePaths[i++], FileMode.Open) : null));
See Also

Reference