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


IPlugInWorkspaceFactoryHelper.ContainsWorkspace Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IP > IPlugInWorkspaceFactoryHelper Interface > IPlugInWorkspaceFactoryHelper.ContainsWorkspace Method
ArcGIS Developer Help

IPlugInWorkspaceFactoryHelper.ContainsWorkspace Method

Indicates if parentDirectory contains a valid workspace, or is a valid file-system workspace.

[Visual Basic .NET]
Public Function ContainsWorkspace ( _
    ByVal parentDirectory As String, _
    ByVal fileNames As IFileNames _
) As Boolean
[C#]
public bool ContainsWorkspace (
    string parentDirectory,
    IFileNames fileNames
);
[C++]
HRESULT ContainsWorkspace(
  BSTR parentDirectory,
  IFileNames* fileNames
);
[C++]
Parameters
parentDirectory [in]

parentDirectory is a parameter of type BSTR fileNames [in]
fileNames is a parameter of type IFileNames*

Product Availability

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

Description

If fileNames is null, returns IsWorkspace for this parentDirectory. If fileNames is not null, returns true if the parentDirectory, which contains the files and folders listed in fileNames, contains a workspace of this type.
File-based data sources: True if any of the files in fileNames are datasets of this type.
Folder-based data sources: True if any of the folders in fileNames are datasets of this type.
Database data sources: True if any of the files in fileNames are workspaces of this type or connection files to workspaces of this type.

See Also

IPlugInWorkspaceFactoryHelper Interface