IXMLStream Interface

Provides access to members that control an in-memory XML stream.

Members

Name Description
Method LoadFromBytes Loads from a UTF-8 byte array.
Method LoadFromFile Loads from a file path.
Method LoadFromString Loads from a string.
Method Reset Resets the stream to the beginning.
Method SaveToBytes Saves to a UTF-8 byte array.
Method SaveToFile Saves to a file path.
Method SaveToString Saves to a string.

IXMLStream.LoadFromBytes Method

Loads from a UTF-8 byte array.

Public Sub LoadFromBytes ( _
    ByRef bytes As Byte[]& _
)
public void LoadFromBytes (
    ref Byte[]& bytes
);

IXMLStream.LoadFromFile Method

Loads from a file path.

Public Sub LoadFromFile ( _
    ByVal filePath As String _
)
public void LoadFromFile (
    string filePath
);

IXMLStream.LoadFromString Method

Loads from a string.

Public Sub LoadFromString ( _
    ByVal XML As String _
)
public void LoadFromString (
    string XML
);

IXMLStream.Reset Method

Resets the stream to the beginning.

Public Sub Reset ( _
)
public void Reset (
);

IXMLStream.SaveToBytes Method

Saves to a UTF-8 byte array.

Public Function SaveToBytes ( _
) As Byte[]
public Byte[] SaveToBytes (
);

IXMLStream.SaveToFile Method

Saves to a file path.

Public Sub SaveToFile ( _
    ByVal filePath As String _
)
public void SaveToFile (
    string filePath
);

IXMLStream.SaveToString Method

Saves to a string.

Public Function SaveToString ( _
) As String
public string SaveToString (
);

Classes that implement IXMLStream

Classes Description
XMLStream An in-memory XML stream.

Remarks

The IXmlStream interface provides seven methods to use for serialization. The LoadFromString method loads data saved as a string from memory while LoadFromFile method loads data saved as a file e.g. file path\foo.xml. The LoadFromBytes method loads data saved as from a UTF-8 byte array, while SaveToString method saves object as a string to memory. The SaveToFile method saves object stream as a file e.g. foo.xml. The SaveToBytes saves object stream as UTF-8 byte array, while Reset method resets the stream to the beginning.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.