Back to Devexpress

WorkspaceManager.SaveWorkspace(String, Object) Method

wpf-devexpress-dot-xpf-dot-core-dot-workspacemanager-dot-saveworkspace-x28-system-dot-string-system-dot-object-x29.md

latest2.4 KB
Original Source

WorkspaceManager.SaveWorkspace(String, Object) Method

Saves the workspace with the specified name to a file or stream.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool SaveWorkspace(
    string name,
    object path
)
vb
Public Function SaveWorkspace(
    name As String,
    path As Object
) As Boolean

Parameters

NameTypeDescription
nameString

A String that specifies the name of the workspace to be saved.

| | path | Object |

The destination where the workspace is saved.

|

Returns

TypeDescription
Boolean

true if the workspace has been successfully saved; otherwise, false.

|

Remarks

The SaveWorkspace method can save workspaces to files and streams. To save a workspace to a file, pass the String, specifying the path to the file, as the path parameter. To save a workspace to a stream, pass the Stream object instead.

Use the WorkspaceManager.LoadWorkspace method to load a workspace from a file or stream.

Implements

SaveWorkspace(String, Object)

See Also

LoadWorkspace(String, Object)

Workspaces

WorkspaceManager Class

WorkspaceManager Members

DevExpress.Xpf.Core Namespace