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


IDataLayer2.InWorkspace Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

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

Parameters Workspace [in]
Workspace is a parameter of type IWorkspace InWorkspace [out, retval] InWorkspace is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IDataLayer2 Interface