IScratchWorkspaceFactory Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > IScratchWorkspaceFactory Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IScratchWorkspaceFactory Interface

Provides access to members that create or get a scratch workspace. Note: the IScratchWorkspaceFactory interface has been superseded byIScratchWorkspaceFactory2. Please consider using the more recent version.

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.

Workspaces created by IScratchWorkspaceFactory.CreateNewScratchWorkspace will be automatically deleted when the last reference to them is released.


Name Description
Method CreateNewScratchWorkspace Creates and returns a new scratch workspace.
Read-only property DefaultScratchWorkspace The default scratch workspace.

CoClasses that implement IScratchWorkspaceFactory

CoClasses and Classes Description
FileGDBScratchWorkspaceFactory (esriDataSourcesGDB) File GeoDatabase Scratch Workspace Factory.
ScratchWorkspaceFactory (esriDataSourcesGDB) Scratch workspace factory object (singleton).

.NET Samples

Extending the replication synchronization process (Code Files: RegisterExtension)

.NET Related Topics

Creating geodatabases | DataSourcesGDB