IScratchWorkspaceFactory2 Interface

Provides access to members to get the current 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.

IScratchWorkspaceFactory.CurrentScratchWorkspace will return a null value if the default scratch workspace has not been created yet, otherwise it will return the default scratch workspace.

Members

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

IScratchWorkspaceFactory2.CurrentScratchWorkspace Property

The current scratch workspace.

Public ReadOnly Property CurrentScratchWorkspace As IWorkspace
public IWorkspace CurrentScratchWorkspace {get;}

Remarks

IScratchWorkspaceFactory.CurrentScratchWorkspace will return a null value if the default scratch workspace has not been created yet, otherwise it will return the default scratch workspace.

Inherited Interfaces

Interfaces Description
IScratchWorkspaceFactory Provides access to members that create or get a scratch workspace.

Classes that implement IScratchWorkspaceFactory2

Classes Description
FileGDBScratchWorkspaceFactory (esriDataSourcesGDB) File GeoDatabase Scratch Workspace Factory.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.