ArcObjects Library Reference (GeoDatabase)  

IWorkspaceFactory.IsWorkspace Method

True if the specified file identifies a workspace supported by the workspace factory.

[Visual Basic .NET]
Public Function IsWorkspace ( _
    ByVal fileName As String _
) As Boolean
[C#]
public bool IsWorkspace (
    string fileName
);
[C++]
HRESULT IsWorkspace(
  BSTR fileName,
  VARIANT_BOOL* IsWorkspace
);
[C++]

Parameters

fileName [in]   fileName is a parameter of type BSTR IsWorkspace [out, retval]   IsWorkspace is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IWorkspaceFactory Interface

.NET Related Topics

Performing a spatial analysis operation using objects