This document is archived and information here might be outdated.  Recommended version.


IWorkspace.Exists Method (ArcObjects .NET 10.6 SDK)
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(
void
);

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