Skip to main content

IWorkspaceManager.LoadWorkspace(String, Object) Method

Loads a workspace from a specified file or stream and adds it to the IWorkspaceManager.Workspaces collection under a specified name.

Namespace: DevExpress.Xpf.Core

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

#Declaration

bool LoadWorkspace(
    string name,
    object path
)

#Parameters

Name Type Description
name String

A String that specifies the name that should be assigned to the loaded workspace.

path Object

The source from which a workspace is loaded.

#Returns

Type Description
Boolean

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

#Remarks

To load a workspace from a file, pass the file path as the path parameter. To load a workspace from a stream, pass the Stream object instead.

Use the IWorkspaceManager.SaveWorkspace method to save a workspace to a file or stream.

See Also