Class FileGDBScratchWorkspaceFactoryClass

Namespace
ESRI.ArcGIS.DatasourcesGDB
Assembly
ESRI.Server.DatasourcesGDB.dll
[ClassInterface(ClassInterfaceType.None)]
[Guid("D9652A31-6B85-480D-8637-91A7DBA2FE28")]
public class FileGDBScratchWorkspaceFactoryClass : FileGDBScratchWorkspaceFactory, IScratchWorkspaceFactory2, IScratchWorkspaceFactory
Inheritance
FileGDBScratchWorkspaceFactoryClass
Implements
Inherited Members

Constructors

FileGDBScratchWorkspaceFactoryClass()

public FileGDBScratchWorkspaceFactoryClass()

Explicit Interface Implementations

CreateNewScratchWorkspace()

Creates and returns a new scratch workspace.

virtual IWorkspace CreateNewScratchWorkspace()

Returns

IWorkspace

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.

CurrentScratchWorkspace

The current scratch workspace.

virtual IWorkspace CurrentScratchWorkspace { get; }

Returns

IWorkspace

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.

DefaultScratchWorkspace

The default scratch workspace.

virtual IWorkspace DefaultScratchWorkspace { get; }

Returns

IWorkspace

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.

IScratchWorkspaceFactory2_CreateNewScratchWorkspace()

virtual IWorkspace IScratchWorkspaceFactory2_CreateNewScratchWorkspace()

Returns

IWorkspace

IScratchWorkspaceFactory2_DefaultScratchWorkspace

virtual IWorkspace IScratchWorkspaceFactory2_DefaultScratchWorkspace { get; }

Returns

IWorkspace