Skip to main content

WorkspaceManager.SaveWorkspace(String, Object) Method

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

Namespace: DevExpress.Xpf.Core

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

#Declaration

public bool SaveWorkspace(
    string name,
    object path
)

#Parameters

Name Type Description
name String

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

path Object

The destination where the workspace is saved.

#Returns

Type Description
Boolean

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

#Remarks

To save a workspace to a file, pass the file path 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.

See Also