This document is archived and information here might be outdated.  Recommended version.


IScratchWorkspaceFactory.DefaultScratchWorkspace Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IScratchWorkspaceFactory.DefaultScratchWorkspace Property

The default scratch workspace.

[Visual Basic .NET]
Public ReadOnly Property DefaultScratchWorkspace As IWorkspace
[C#]
public IWorkspace DefaultScratchWorkspace {get;}
[C++]
HRESULT get_DefaultScratchWorkspace(
  IWorkspace** Workspace
);
[C++]

Parameters Workspace [out, retval]
Workspace is a parameter of type IWorkspace**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

IScratchWorkspaceFactory is used to create temporary personal geodatabases in the current user's temporary directory.

The first time IScratchWorkspaceFactory.DefaultScratchWorkspace is called, it will create a new temporary workspace and pass it back.  Subsequent calls to this method will return the same workspace.  When the application is closed, the default scratch workspace will be deleted.

See Also

IScratchWorkspaceFactory Interface

.NET Related Topics

Creating geodatabases