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


IWorkspace.Exists Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspace Interface > IWorkspace.Exists Method
ArcGIS Developer Help

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