Edit

Share via


IFragmentCapableXmlDictionaryWriter Interface

Definition

Contains properties and methods that when implemented by a XmlDictionaryWriter, allows processing of XML fragments.

C#
public interface IFragmentCapableXmlDictionaryWriter

Remarks

This class defines the properties and methods related to the capability of an XmlDictionaryWriter to redirect part of its output (a 'fragment') to a different stream than the stream it was created with and to directly insert such a fragment captured by redirection back into the main stream of the same writer at a later point.

Properties

CanFragment

Gets a value that indicates whether this XmlDictionaryWriter can process XML fragments.

Methods

EndFragment()

Ends the processing of an XML fragment.

StartFragment(Stream, Boolean)

Starts the processing of an XML fragment.

WriteFragment(Byte[], Int32, Int32)

Writes an XML fragment to the underlying stream of the writer.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1