VNoteCollectionWriteToStream Method

This can be used to write an entire collection of vNotes to a PDI data stream

Definition

Namespace: EWSoftware.PDI.Objects
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public void WriteToStream(
	TextWriter tw
)

Parameters

tw  TextWriter
A TextWriter derived class to which the vNotes are written

Example

C#
// Create a vNote collection and some vNotes
VNoteCollection vNotes = new VNoteCollection();
VNote vn = new VNote();
vn.Body.Value = "A new note";
vNotes.Add(vn);

vn = new VNote();
vn.Body.Value = "A second note
vNotes.Add(vn);

// Open the file and write the vNotes to it
StreamWriter sw = new StreamWriter(@"C:\Notes.vnt");
vNotes.WriteToStream(sw);
sw.Close();

See Also