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


IPlugInWorkspaceFactoryHelper.ContainsWorkspace Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

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,
  VARIANT_BOOL* ContainsWorkspace
);
[C++]

Parameters parentDirectory [in] parentDirectory is a parameter of type BSTR fileNames [in]
fileNames is a parameter of type IFileNames ContainsWorkspace [out, retval] ContainsWorkspace is a parameter of type VARIANT_BOOL

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