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.900 (2.0.0.900)

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

Relate Topics:
  Connect Method
  CreateFromXmlString Method
  Disconnect Method
  MoveTo Method
  Open Method
Created by Atop CHM to web converter,© 2009 all right reserved.