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

IDataLayer2.InWorkspace Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataLayer2 Interface > IDataLayer2.InWorkspace Method
ArcGIS Developer Help

IDataLayer2.InWorkspace Method

Returns TRUE if the layer is in the specified workspace.

[Visual Basic .NET]
Public Function InWorkspace ( _
    ByVal Workspace As IWorkspace _
) As Boolean
public bool InWorkspace (
    IWorkspace Workspace
HRESULT InWorkspace(
  IWorkspace* Workspace
Workspace [in]

Workspace is a parameter of type IWorkspace*

Product Availability

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

See Also

IDataLayer2 Interface