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
[C#]
public bool InWorkspace (
    IWorkspace Workspace
);
[C++]
HRESULT InWorkspace(
  IWorkspace* Workspace
);
[C++]
Parameters
Workspace [in]

Workspace is a parameter of type IWorkspace*

Product Availability

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

See Also

IDataLayer2 Interface