LayerFile CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Classes > L > LayerFile CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

LayerFile CoClass

The LayerFile coclass is used to read and write layer document files.

Product Availability

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

Description

When creating a new LayerFile object the ReplaceContents method must be used to set your Layer, as the Layer property is Read-Only. If a new LayerFile is created but no Layer has been set, the IsLayerFile will return False.

 

Interfaces

Interfaces Description
IDocumentVersion (esriSystem) Provides access to members that control the document version.
ILayerFile Provides access to members that control the reading and writing of layer document files.