ITeamFoundationLocationService.FindServiceDefinition Method (TeamFoundationRequestContext, String, Guid, Guid)
Returns the service definition for the service with 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
Function FindServiceDefinition ( _
requestContext As TeamFoundationRequestContext, _
serviceType As String, _
identifier As Guid, _
serviceOwner As Guid _
) As ServiceDefinition
ServiceDefinition FindServiceDefinition(
TeamFoundationRequestContext requestContext,
string serviceType,
Guid identifier,
Guid serviceOwner
)
ServiceDefinition^ FindServiceDefinition(
TeamFoundationRequestContext^ requestContext,
String^ serviceType,
Guid identifier,
Guid serviceOwner
)
abstract FindServiceDefinition :
requestContext:TeamFoundationRequestContext *
serviceType:string *
identifier:Guid *
serviceOwner:Guid -> ServiceDefinition
function FindServiceDefinition(
requestContext : TeamFoundationRequestContext,
serviceType : String,
identifier : Guid,
serviceOwner : 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.
serviceOwner
Type: System.GuidThe 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: Microsoft.VisualStudio.Services.Location.ServiceDefinition
The service definition for the service with 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
ITeamFoundationLocationService Interface