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

IScratchWorkspaceFactory.CreateNewScratchWorkspace Method (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.CreateNewScratchWorkspace Method
ArcGIS Developer Help

IScratchWorkspaceFactory.CreateNewScratchWorkspace Method

Creates and returns a new scratch workspace.

[Visual Basic .NET]
Public Function CreateNewScratchWorkspace ( _
) As IWorkspace
public IWorkspace CreateNewScratchWorkspace (
HRESULT CreateNewScratchWorkspace(

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.

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

See Also

IScratchWorkspaceFactory Interface

.NET Samples

Extending the replication synchronization process