Provides access to members that create or get a scratch workspace.
Description
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.
Members
Name | Description | |
---|---|---|
CreateNewScratchWorkspace | Creates and returns a new scratch workspace. | |
DefaultScratchWorkspace | The default scratch workspace. |
IScratchWorkspaceFactory.CreateNewScratchWorkspace Method
Creates and returns a new scratch workspace.
Public Function CreateNewScratchWorkspace ( _
) As IWorkspace
public IWorkspace CreateNewScratchWorkspace (
);
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.
IScratchWorkspaceFactory.DefaultScratchWorkspace Property
The default scratch workspace.
Public ReadOnly Property DefaultScratchWorkspace As IWorkspace
public IWorkspace DefaultScratchWorkspace {get;}
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.
Classes that implement IScratchWorkspaceFactory
Classes | Description |
---|---|
FileGDBScratchWorkspaceFactory (esriDataSourcesGDB) | File GeoDatabase Scratch Workspace Factory. |