Show / Hide Table of Contents

Method OpenAsync

OpenAsync(String)

Creates and initializes a ShapefileFeatureTable from a file path.

Declaration
public static async Task<ShapefileFeatureTable> OpenAsync(string shapefilePath)
Parameters
Type Name Description
System.String shapefilePath

Path to the *.shp shape file.

Returns
Type Description
System.Threading.Tasks.Task<ShapefileFeatureTable>

A task that represents the asynchronous open operation. The value of the task result is a ShapefileFeatureTable object.

Remarks

When creating a shapefile feature table, the shapefilePath must point to the *.shp file and the associated *.shx and *.dbf files must be present at the same location.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.2.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 100.15
Relevant samples
Display feature layers: Open a shapefile stored on the device and display it as a feature layer with default symbology.
Read shapefile metadata: Read a shapefile and display its metadata.
In This Article
Back to top Copyright © 2022 Esri.