![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IW > IWorkspace Interface > IWorkspace.Exists Method (ArcObjects .NET 10.4 SDK) |
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
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.