Partager via


DocDataTextWriter.Flush Method

Replaces the contents of the text stream with the contents of the string builder.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Déclaration
Public Overrides Sub Flush
'Utilisation
Dim instance As DocDataTextWriter

instance.Flush()
public override void Flush()
public:
virtual void Flush() override
abstract Flush : unit -> unit 
override Flush : unit -> unit 
public override function Flush()

Remarks

Keeps track of how much we have sent to the text stream and clears the string builder effectively implementing the expected behavior of flushing a text stream. This method pushes data into the stream only if there is data to push. If the contents of the writer have not been changed, this method will not delete the data in the text stream. It is implemented this way so that client service providers may utilize more advanced flushing schemes.

.NET Framework Security

See Also

Reference

DocDataTextWriter Class

DocDataTextWriter Members

Microsoft.VisualStudio.Shell.Design.Serialization Namespace