Constructor FeatureLayer
FeatureLayer()
Initializes a new instance of the FeatureLayer class.
Declaration
public FeatureLayer()
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.13 |
| .NET Framework | 100.0 - 100.8 |
| .NET 5 | 100.11 |
| .NET Core 3.1 | 100.7 - 100.8 |
| Xamarin.Android | 100.0 - 100.13 |
| Xamarin.iOS | 100.0 - 100.8 |
| UWP | 100.0 - 100.15 |
FeatureLayer(FeatureTable)
Initializes a new instance of the FeatureLayer class.
Declaration
public FeatureLayer(FeatureTable featureTable)
Parameters
| Type | Name | Description |
|---|---|---|
| FeatureTable | featureTable | The feature table used as the source of the feature layer. |
Remarks
Any of the inherited FeatureTable types can be used as the input parameter for this constructor, including the ArcGISFeatureTable, FeatureCollectionTable, GeoPackageFeatureTable, OgcFeatureCollectionTable, ShapefileFeatureTable, and WfsFeatureTable.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |
Relevant samples
FeatureLayer(Uri)
Initializes a new instance of the FeatureLayer class with a ServiceFeatureTable.
Declaration
public FeatureLayer(Uri featureServiceUri)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | featureServiceUri | The feature service Uri. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |
FeatureLayer(Uri, Credential)
Initializes a new instance of the FeatureLayer class with a ServiceFeatureTable.
Declaration
public FeatureLayer(Uri featureServiceUri, Credential credential)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | featureServiceUri | The feature service Uri. |
| Credential | credential | The credential used to access the feature service. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |
FeatureLayer(Item)
Initializes a new instance of the FeatureLayer class from a feature layer or feature service portal item.
Declaration
public FeatureLayer(Item item)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The ArcGIS Item |
Remarks
If the portal item is a feature service, the FeatureLayer will be created from the first layer on the service.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.14 - 100.15 |
| .NET 6.0 | 100.14 - 100.15 |
| .NET 6.0 Windows | 100.14 - 100.15 |
| .NET Framework | 100.14 - 100.15 |
| Xamarin.Android | 100.14 - 100.15 |
| Xamarin.iOS | 100.14 - 100.15 |
| UWP | 100.14 - 100.15 |
FeatureLayer(Item, Int64)
Initializes a new instance of the FeatureLayer class from a portal item of type FeatureService.
Declaration
public FeatureLayer(Item item, long layerId)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The ArcGIS Item |
| System.Int64 | layerId | The layer id for which to create the layer. |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |