ITeamFoundationLocationService.GetSelfReferenceUri Method
Gets the Uri for this location service for this host. It will attempt to retrieve the location given the access mapping provided. If the location service coould not be resolved using the access mapping it will then return the first access mapping. If there are no access mappings available for the location service it will throw AccessMappingNotRegisteredException.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Function GetSelfReferenceUri ( _
requestContext As TeamFoundationRequestContext, _
accessMapping As AccessMapping, _
serviceOwner As Guid _
) As Uri
Uri GetSelfReferenceUri(
TeamFoundationRequestContext requestContext,
AccessMapping accessMapping,
Guid serviceOwner
)
Uri^ GetSelfReferenceUri(
TeamFoundationRequestContext^ requestContext,
AccessMapping^ accessMapping,
Guid serviceOwner
)
abstract GetSelfReferenceUri :
requestContext:TeamFoundationRequestContext *
accessMapping:AccessMapping *
serviceOwner:Guid -> Uri
function GetSelfReferenceUri(
requestContext : TeamFoundationRequestContext,
accessMapping : AccessMapping,
serviceOwner : Guid
) : Uri
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
accessMapping
Type: Microsoft.VisualStudio.Services.Location.AccessMappingAccessMapping used to initially retrieve the location
- serviceOwner
Type: System.Guid
Return Value
Type: System.Uri
The fully qualified URL to the location service if registered, otherwise null
.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.