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


IFeatureCache2.AddLayers Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

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 _
)
[C#]
public void AddLayers (
    IEnumLayer Layers,
    IEnvelope Clip
);
[C++]
HRESULT AddLayers(
  IEnumLayer* Layers,
  IEnvelope* Clip
);
[C++]

Parameters 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.

Remarks

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