Constructor FeatureLayer
FeatureLayer(FeatureTable)
Initializes a new instance of the FeatureLayer class from a given FeatureTable.
Declaration
public FeatureLayer(FeatureTable featureTable)
Parameters
Type | Name | Description |
---|---|---|
FeatureTable | featureTable | The feature table used as the data source of the feature layer. |
Remarks
Any inherited FeatureTable type can be used as the input parameter for this constructor, except FeatureCollectionTable. To display features in a FeatureCollectionTable, use FeatureCollectionLayer.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | featureTable |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
FeatureLayer(Uri)
Initializes a new instance of the FeatureLayer class with a ServiceFeatureTable.
Declaration
public FeatureLayer(Uri featureServiceUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | featureServiceUri | The feature service Uri. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | featureServiceUri |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
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 | A feature layer or feature service PortalItem. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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 | A feature service PortalItem. The item's type must be FeatureService. |
System.Int64 | layerId | The layer id of an individual layer in the ArcGIS feature service represented by the item parameter. |
Remarks
The feature layer will fail to load if an invalid portal item is passed in.
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |