Share via


TeamFoundationLocationService.FindServiceDefinitions Method

Finds the service definitions for all of the available services for the specified service type. If no services of this type exist, an empty enumeration will be returned.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function FindServiceDefinitions ( _
    requestContext As TeamFoundationRequestContext, _
    serviceType As String _
) As IEnumerable(Of ServiceDefinition)
public IEnumerable<ServiceDefinition> FindServiceDefinitions(
    TeamFoundationRequestContext requestContext,
    string serviceType
)
public:
IEnumerable<ServiceDefinition^>^ FindServiceDefinitions(
    TeamFoundationRequestContext^ requestContext, 
    String^ serviceType
)
member FindServiceDefinitions : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string -> IEnumerable<ServiceDefinition> 
public function FindServiceDefinitions(
    requestContext : TeamFoundationRequestContext, 
    serviceType : String
) : IEnumerable<ServiceDefinition>

Parameters

  • serviceType
    Type: System.String

    The case-insensitive string that identifies what type of service is being requested. If this value is null, definitions for all services that are registered with this location service will be returned.

Return Value

Type: System.Collections.Generic.IEnumerable<ServiceDefinition>
Service definitions for all of the existing services that are of the supplied service type. If no services of this type exist, an empty enumeration will be returned.

.NET Framework Security

See Also

Reference

TeamFoundationLocationService Class

Microsoft.TeamFoundation.Framework.Server Namespace