Delen via


ITeamFoundationLocationService.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
Function FindServiceDefinitions ( _
    requestContext As TeamFoundationRequestContext, _
    serviceType As String, _
    serviceOwner As Guid _
) As IEnumerable(Of ServiceDefinition)
IEnumerable<ServiceDefinition> FindServiceDefinitions(
    TeamFoundationRequestContext requestContext,
    string serviceType,
    Guid serviceOwner
)
IEnumerable<ServiceDefinition^>^ FindServiceDefinitions(
    TeamFoundationRequestContext^ requestContext, 
    String^ serviceType, 
    Guid serviceOwner
)
abstract FindServiceDefinitions : 
        requestContext:TeamFoundationRequestContext * 
        serviceType:string * 
        serviceOwner:Guid -> IEnumerable<ServiceDefinition> 
function FindServiceDefinitions(
    requestContext : TeamFoundationRequestContext, 
    serviceType : String, 
    serviceOwner : Guid
) : 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 registered with this location service will be returned.

  • serviceOwner
    Type: System.Guid

    The service owner should be Guid.Empty if you are targetting the current service's location service. If you want to target a remote service's location service. This should be the Guid of the service. Use Microsoft.VisualStudio.Services.Common.ServiceOwners

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

ITeamFoundationLocationService Interface

Microsoft.TeamFoundation.Framework.Server Namespace