Visual Basic (Declaration) | |
---|---|
Public Overloads Shared Function GetService( _ ByVal path As String, _ ByVal serviceType As GPServiceType, _ ByVal maxRecords As Integer _ ) As LocalGeoprocessingService |
C# | |
---|---|
public static LocalGeoprocessingService GetService( string path, GPServiceType serviceType, int maxRecords ) |
Parameters
- path
- A System.String representing the path to the geoprocessing package.
- serviceType
- Type of the service.
- maxRecords
- A System.Int32 representing the maximum number of records that can be returned.
Return Value
An existing LocalGeoprocessingService instance if one exists with the same properties in the LocalServer Services collection, otherwise a new LocalGeoprocessingService instance.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8