VNoteCollectionWriteToStream Method
This can be used to write an entire collection of vNotes to a PDI data stream
Namespace: EWSoftware.PDI.ObjectsAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public void WriteToStream(
TextWriter tw
)
Public Sub WriteToStream (
tw As TextWriter
)
public:
void WriteToStream(
TextWriter^ tw
)
member WriteToStream :
tw : TextWriter -> unit
Parameters
- tw TextWriter
- A TextWriter derived class to which the vNotes are written
// 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();
' 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()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.