ArcObjects Library Reference  (Carto)    

IDataLayer2.InWorkspace Method

Returns TRUE if the layer is in the specified workspace.

[Visual Basic 6.0]
Function InWorkspace(
    ByVal Workspace As IWorkspace _
) As Boolean
[Visual Basic .NET]
Public Function InWorkspace ( _
    ByVal Workspace As IWorkspace _
) As Boolean
[C#]
public bool InWorkspace (
    IWorkspace Workspace
);
[Java]
public Boolean inWorkspace (
    IWorkspace Workspace
)
throws
    IOException,
    AutomationException
[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