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


LayerFile Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Classes > L > LayerFile Class
ArcGIS Developer Help

LayerFileClass Class

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.