Share via


TeamFoundationLocationService.GetServerAccessMapping Method

This method may not actually return the access mapping with Moniker=ServerAccessMapping. If no such mapping exists we will return the PublicAccessMapping instead (which may also not exist in which case we'll return the DefaultAccessMapping). If you need to find the actual access mapping with Moniker=ServerAccessMapping (which may or may not exist) you should call GetAccessMapping overload which takes in moniker parameter and be prepared for the possibility that it may return null.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function GetServerAccessMapping ( _
    requestContext As TeamFoundationRequestContext, _
    serviceOwner As Guid _
) As AccessMapping
public AccessMapping GetServerAccessMapping(
    TeamFoundationRequestContext requestContext,
    Guid serviceOwner
)
public:
virtual AccessMapping^ GetServerAccessMapping(
    TeamFoundationRequestContext^ requestContext, 
    Guid serviceOwner
) sealed
abstract GetServerAccessMapping : 
        requestContext:TeamFoundationRequestContext * 
        serviceOwner:Guid -> AccessMapping  
override GetServerAccessMapping : 
        requestContext:TeamFoundationRequestContext * 
        serviceOwner:Guid -> AccessMapping
public final function GetServerAccessMapping(
    requestContext : TeamFoundationRequestContext, 
    serviceOwner : Guid
) : AccessMapping

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Location.AccessMapping
Returns AccessMapping.

Implements

ITeamFoundationLocationService.GetServerAccessMapping(TeamFoundationRequestContext, Guid)

.NET Framework Security

See Also

Reference

TeamFoundationLocationService Class

Microsoft.TeamFoundation.Framework.Server Namespace