Delen via


ITeamFoundationLocationService.GetAccessMapping Method

Returns the access mapping for the provided moniker. If the access mapping is not found, null is returned.

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

Syntax

'Declaration
Function GetAccessMapping ( _
    requestContext As TeamFoundationRequestContext, _
    moniker As String, _
    serviceOwner As Guid _
) As AccessMapping
AccessMapping GetAccessMapping(
    TeamFoundationRequestContext requestContext,
    string moniker,
    Guid serviceOwner
)
AccessMapping^ GetAccessMapping(
    TeamFoundationRequestContext^ requestContext, 
    String^ moniker, 
    Guid serviceOwner
)
abstract GetAccessMapping : 
        requestContext:TeamFoundationRequestContext * 
        moniker:string * 
        serviceOwner:Guid -> AccessMapping
function GetAccessMapping(
    requestContext : TeamFoundationRequestContext, 
    moniker : String, 
    serviceOwner : Guid
) : AccessMapping

Parameters

  • moniker
    Type: System.String

    The moniker of the access mapping to find.

  • serviceOwner
    Type: System.Guid

    The 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.AccessMapping
The access mapping for the provided moniker or null if it isn't found.

.NET Framework Security

See Also

Reference

ITeamFoundationLocationService Interface

Microsoft.TeamFoundation.Framework.Server Namespace