Share via


LocationWebService.QueryServices Method

Returns service definitions and access mapping information for the provided filters. If no changes have occured since lastChangeId, no service data will be returned. If this is the first time this method is being called or the caller wants all of the information returned then -1 should be passed for lastChangeId.

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

Syntax

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

Parameters

  • lastChangeId
    Type: System.Int32

    The value that was returned to the caller the last time the registered service data was queried (via either this method of the Connect method). If no changes have occured since lastChangeId, no service data will be returned. If this is the first time this method is being called or the caller wants all of the information returned then -1 should be passed for lastChangeId.

Return Value

Type: Microsoft.TeamFoundation.Server.Core.Location.LocationServiceData
A structure containing the updated lastChangeId, all of the service definitions and access mapping information for the requested services.

.NET Framework Security

See Also

Reference

LocationWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace