com.esri.arcgis.geodatabase
Interface IWorkspace2

All Superinterfaces:
Serializable
All Known Implementing Classes:
IWorkspace2Proxy, Sde4Workspace, Workspace

public interface IWorkspace2
extends Serializable

Provides access to members that have information about the workspace.

Description

The IWorkspace2 interface provides the NameExists method that facilitates determining the existance of the specified type of dataset with the supplied name. IWorkspace2 is only implemented for geodatabases and (at versions later than 9.3.1) shapefile workspaces.

Product Availability

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


Method Summary
 boolean isNameExists(int type, String name)
          Indicates if a dataset with the given name exists within the workspace.
 

Method Detail

isNameExists

boolean isNameExists(int type,
                     String name)
                     throws IOException,
                            AutomationException
Indicates if a dataset with the given name exists within the workspace.

Product Availability

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

Parameters:
type - A com.esri.arcgis.geodatabase.esriDatasetType constant (in)
name - The name (in)
Returns:
The exists
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.