EndSegment Method
Ends writing the current segment.
Syntax
public void EndSegment();
Public Sub EndSegment()
Remarks
EndSegment terminates writing the current segment and flushes it to the output stream/file.
You should call EndSegment to close a segment started with StartSegment, StartInterchangeHeader, StartFunctionalGroupHeader or StartTransactionHeader.