ArcGIS Runtime SDK for WPF - Library Reference
GetServiceAsync(String,Int32) Method
See Also 
ESRI.ArcGIS.Client.Local Namespace > LocalFeatureService Class > GetServiceAsync Method : GetServiceAsync(String,Int32) Method

path
A string representing the path to a Map Package.
maxRecords
An integer representing the maximum number of records that can be returned by the service in response to a query. This also determines how many features will be visible in the map as requested from the service.
Creates and starts a new LocalFeatureService or reuses an existing LocalFeatureService if one is already running on the LocalServer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Shadows Function GetServiceAsync( _
   ByVal path As String, _
   ByVal maxRecords As Integer _
) As Task(Of LocalFeatureService)
C# 
public new static Task<LocalFeatureService> GetServiceAsync( 
   string path,
   int maxRecords
)

Parameters

path
A string representing the path to a Map Package.
maxRecords
An integer representing the maximum number of records that can be returned by the service in response to a query. This also determines how many features will be visible in the map as requested from the service.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.