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


ILayerFile.Open Method (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.Open Method
ArcGIS Developer Help

ILayerFile.Open Method

Open the layer file in preparation for the contents to be retrieved or updated.

[Visual Basic .NET]
Public Sub Open ( _
    ByVal sFile As String _
)
[C#]
public void Open (
    string sFile
);
[C++]
HRESULT Open(
  BSTR sFile
);
[C++]
Parameters
sFile [in]

sFile is a parameter of type BSTR

Product Availability

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

See Also

ILayerFile Interface

.NET Samples

Working with packages in ArcGIS Engine