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


IScratchWorkspaceFactory.DefaultScratchWorkspace Property (ArcObjects .NET 10.7 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
[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