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


ILayerFile.Layer Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

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 (Code Files: FrmMapControl)