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


ILayerFile.Layer Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerFile Interface > ILayerFile.Layer Property
ArcGIS Developer Help

ILayerFile.Layer Property

The Layer object. If no layer object is stored in the layer file this returns NULL.

[Visual Basic .NET]
Public ReadOnly Property Layer As ILayer
[C#]
public ILayer Layer {get;}
[C++]
HRESULT get_Layer(
  ILayer** ppLayer
);
[C++]
Parameters
ppLayer [out, retval]

ppLayer is a parameter of type ILayer**

Product Availability

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

See Also

ILayerFile Interface

.NET Samples

Working with packages in ArcGIS Engine