TeamFoundationLocationService.FindServiceDefinition Method (TeamFoundationRequestContext, String, Guid)
Returns the service definition for the service that has the provided service type and identifier. Null will be returned if there is no entry in the cache for this service.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function FindServiceDefinition ( _
requestContext As TeamFoundationRequestContext, _
serviceType As String, _
identifier As Guid _
) As ServiceDefinition
public ServiceDefinition FindServiceDefinition(
TeamFoundationRequestContext requestContext,
string serviceType,
Guid identifier
)
public:
ServiceDefinition^ FindServiceDefinition(
TeamFoundationRequestContext^ requestContext,
String^ serviceType,
Guid identifier
)
member FindServiceDefinition :
requestContext:TeamFoundationRequestContext *
serviceType:string *
identifier:Guid -> ServiceDefinition
public function FindServiceDefinition(
requestContext : TeamFoundationRequestContext,
serviceType : String,
identifier : Guid
) : ServiceDefinition
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context this call is associated with.
serviceType
Type: System.StringThe service type we are looking for.
identifier
Type: System.GuidThe identifier for the specific service instance we are looking for.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.ServiceDefinition
The service definition for the service that has the provided service type and identifier. Null will be returned if there is no entry in the cache for this service.
.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.
See Also
Reference
TeamFoundationLocationService Class