VNote CollectionWrite To Stream 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: 2025.1.9.0
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public void WriteToStream(
TextWriter tw
)VB
Public Sub WriteToStream (
tw As TextWriter
)C++
public:
void WriteToStream(
TextWriter^ tw
)F#
member WriteToStream :
tw : TextWriter -> unit 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();VB
' Create a vNote collection and some vNotes
Dim vNotes As New VNoteCollection()
Dim vn As 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
Dim sw As New StreamWriter("C:\Notes.vnt")
vNotes.WriteToStream(sw)
sw.Close()C++
No code example is currently available or this language may not be supported.F#
No code example is currently available or this language may not be supported.