ArcObjects Library Reference  (GeoDatabase)    

IScratchWorkspaceFactory.CreateNewScratchWorkspace Method

Creates and returns a new scratch workspace.

[Visual Basic 6.0]
Function CreateNewScratchWorkspace As IWorkspace
[Visual Basic .NET]
Public Function CreateNewScratchWorkspace ( _
) As IWorkspace
[C#]
public IWorkspace CreateNewScratchWorkspace (
);
[Java]
public IWorkspace createNewScratchWorkspace (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT CreateNewScratchWorkspace(
  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 temp directory.  You can find this directory by looking at the %TEMP% environment variable.  The scratch personal geodatabase will have the name mx<number>.mdb where <number> is the global unique identifier that uniquely identifies the geodatabase.

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

See Also

IScratchWorkspaceFactory Interface

 


Feedback Send feedback on this page