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


IScratchWorkspaceFactory.CreateNewScratchWorkspace Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IScratchWorkspaceFactory.CreateNewScratchWorkspace Method

Creates and returns a new scratch workspace.

[Visual Basic .NET]
Public Function CreateNewScratchWorkspace ( _
) As IWorkspace
[C#]
public IWorkspace CreateNewScratchWorkspace (
);
[C++]
HRESULT CreateNewScratchWorkspace(
void
);

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.

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 (Code Files: RegisterExtension)

.NET Related Topics

DataSourcesGDB