WorkspaceManager.CloseStreamOnWorkspaceLoading Property

Gets or sets whether this WorkspaceManager should automatically close streams opened when loading workspaces.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean CloseStreamOnWorkspaceLoading { get; set; }
<DXCategory("Behavior")>
<DefaultValue(DefaultBoolean.Default)>
Public Property CloseStreamOnWorkspaceLoading As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean enumerator value that specifies whether this WorkspaceManager should automatically close streams opened when loading workspaces.

Remarks

Each time the WorkspaceManager saves (WorkspaceManager.SaveWorkspace) or loads (WorkspaceManager.LoadWorkspace) a workspace, it opens a stream to work with an XML file. By default, these streams are not closed automatically and stay in memory, which can cause performance issues when working with large workspaces. To force the WorkspaceManager to close these streams, set the CloseStreamOnWorkspaceLoading and WorkspaceManager.CloseStreamOnWorkspaceSaving properties to DefaultBoolean.True.

See Also