Initializes a new PackageLayer object using the specified layer file path and connects the layer to the underlying data source.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public static PackageLayer OpenLayerFile(
	string filename
)
Visual Basic (Declaration)
Public Shared Function OpenLayerFile ( _
	filename As String _
) As PackageLayer

Parameters

filename
Type: System..::.String

The path to an ArcGIS Desktop layer file (.lyr).

Return Value

A PackageLayer object which represents a layer based on an ArcGIS Desktop layer file.

See Also