Saves the docked window information into the specified stream as binary data.
The following example shows how to save the UltraDockManager file to a stream in binary format.
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock
Imports System.IO
Private Sub btnSaveLayoutBinary_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSaveLayoutBinary.Click
Dim stream As FileStream = Nothing
Dim fileName As String = Application.CommonAppDataPath & "\dockManager.bin"
Try
stream = New FileStream(fileName, FileMode.Create, FileAccess.ReadWrite)
Me.ultraDockManager1.SaveAsBinary(stream)
Finally
If Not stream Is Nothing Then stream.Close()
End Try
End Sub
'Declaration
Public Overloads Sub SaveAsBinary( _
ByVal As Stream _
)
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDock;
using System.Diagnostics;
using System.IO;
private void btnSaveLayoutBinary_Click(object sender, System.EventArgs e)
{
FileStream stream = null;
string fileName = Application.CommonAppDataPath + @"\dockManager.bin";
try
{
stream = new FileStream(fileName, FileMode.Create, FileAccess.ReadWrite);
this.ultraDockManager1.SaveAsBinary(stream);
}
finally
{
if (stream != null)
stream.Close();
}
}
'Declaration
Public Overloads Sub SaveAsBinary( _
ByVal As Stream _
)
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2