Initializes a new FeatureLayer object and connects the layer to a shapefile.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public static FeatureLayer OpenShapefile(
	string path
)
Visual Basic (Declaration)
Public Shared Function OpenShapefile ( _
	path As String _
) As FeatureLayer

Parameters

path
Type: System..::.String

The path to a shapefile.

Return Value

A FeatureLayer object connected to the specified shapefile.

Remarks

Use this method to both instantiate a FeatureLayer and connect the layer to an shapefile. In contrast to the Connect method, an exception will be thrown if the specified path is incorrect.

See Also