Share via


LocationWebService.SaveServiceDefinitions Method

Registers the provided service with the location service. This operation will assign a unique identifier to the service definition for its service type and is included in the returned value. Any access mappings referenced in a service definition or one of its LocationMappings must already be registered with the LocationService.

Namespace:  Microsoft.TeamFoundation.Server.Core.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function SaveServiceDefinitions ( _
    serviceDefinitions As List(Of ServiceDefinition), _
    lastChangeId As Integer _
) As LocationServiceData
[WebMethodAttribute]
public LocationServiceData SaveServiceDefinitions(
    List<ServiceDefinition> serviceDefinitions,
    int lastChangeId
)
[WebMethodAttribute]
public:
LocationServiceData^ SaveServiceDefinitions(
    List<ServiceDefinition^>^ serviceDefinitions, 
    int lastChangeId
)
[<WebMethodAttribute>]
member SaveServiceDefinitions : 
        serviceDefinitions:List<ServiceDefinition> * 
        lastChangeId:int -> LocationServiceData
public function SaveServiceDefinitions(
    serviceDefinitions : List<ServiceDefinition>, 
    lastChangeId : int
) : LocationServiceData

Parameters

  • lastChangeId
    Type: System.Int32

    This is the lastChangeId used to tell if the client cache is out of date. This information plus the new lastChangeId will be returned.

Return Value

Type: Microsoft.TeamFoundation.Server.Core.Location.LocationServiceData
LocationServiceData object containing the service definitions of the service that was registered (which contains the identifier it was assigned) as well as information about the new lastChangeId and if the client cache is fresh.

.NET Framework Security

See Also

Reference

LocationWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace