Show / Hide Table of Contents

Method GetTable

GetTable(Int64)

Returns a service feature table object from the ID of a layer or table in the service.

Declaration
public ServiceFeatureTable GetTable(long layerId)
Parameters
Type Name Description
Int64 layerId

The layer id for which to create the table

Returns
Type Description
ServiceFeatureTable

A table instance for working with the table or layer in the feature service

Remarks

If a table instance for the layer already exists in ConnectedTables, the existing object will be returned. Otherwise, a new ServiceFeatureTable will be created. If no table or layer exists in the service with the given ID, an ArgumentException error is thrown.

Exceptions
Type Condition
ArgumentException

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.9 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.9 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.9 - 100.12
Xamarin.Android100.9 - 100.15
Xamarin.iOS100.9 - 100.15
UWP100.9 - 100.15
In This Article
Back to top Copyright © 2022 Esri.