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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context this call is associated with.
serviceType
Type: System.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.