ArcObjects Library Reference (GeoDatabase)  

IWorkspace.Exists Method

Checks if the workspace exists.

[Visual Basic .NET]
Public Function Exists ( _
) As Boolean
[C#]
public bool Exists (
);
[C++]
HRESULT Exists(
  VARIANT_BOOL* Exists
);
[C++]

Parameters

Exists [out, retval]   Exists is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This method can be used with workspaces from file-based data sources to detect if they've been deleted by another application. For example, a shapefile workspace is a directory and can be deleted while the workspace is open.

See Also

IWorkspace Interface