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

IFeatureCache2.AddLayers Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IF > IFeatureCache2 Interface > IFeatureCache2.AddLayers Method
ArcGIS Developer Help

IFeatureCache2.AddLayers Method

Fills the cache with the features from the specified layers. Clip envelope may be null.

[Visual Basic .NET]
Public Sub AddLayers ( _
    ByVal Layers As IEnumLayer, _
    ByVal Clip As IEnvelope _
public void AddLayers (
    IEnumLayer Layers,
    IEnvelope Clip
HRESULT AddLayers(
  IEnumLayer* Layers,
  IEnvelope* Clip
Layers [in]

Layers is a parameter of type IEnumLayer* Clip [in]
Clip is a parameter of type IEnvelope*

Product Availability

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


Adds the features in the specified layers to the cache.  Only features that fit within the intersection of the clip envelope and the cache's internal envelope (specified during initialization) will be added.

See Also

IFeatureCache2 Interface