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

IScratchWorkspaceFactory.DefaultScratchWorkspace Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > IScratchWorkspaceFactory Interface > IScratchWorkspaceFactory.DefaultScratchWorkspace Property
ArcGIS Developer Help

IScratchWorkspaceFactory.DefaultScratchWorkspace Property

The default scratch workspace.

[Visual Basic .NET]
Public ReadOnly Property DefaultScratchWorkspace As IWorkspace
public IWorkspace DefaultScratchWorkspace {get;}
HRESULT get_DefaultScratchWorkspace(
  IWorkspace** Workspace
Workspace [out, retval]

Workspace is a parameter of type IWorkspace**

Product Availability

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


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