Share via


ITeamFoundationLocationService.ConfigureAccessMapping Method

Adds a new access mapping to this ___location service as long as an access zone with the specified moniker does not currently exist. If a moniker already exists an error will be thrown. This function optionally generates ___location mappings for all registered services that are relative to a given tier.

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

Syntax

'Declaration
Function ConfigureAccessMapping ( _
    requestContext As TeamFoundationRequestContext, _
    accessMapping As AccessMapping, _
    makeDefault As Boolean _
) As AccessMapping
AccessMapping ConfigureAccessMapping(
    TeamFoundationRequestContext requestContext,
    AccessMapping accessMapping,
    bool makeDefault
)
AccessMapping^ ConfigureAccessMapping(
    TeamFoundationRequestContext^ requestContext, 
    AccessMapping^ accessMapping, 
    bool makeDefault
)
abstract ConfigureAccessMapping : 
        requestContext:TeamFoundationRequestContext * 
        accessMapping:AccessMapping * 
        makeDefault:bool -> AccessMapping
function ConfigureAccessMapping(
    requestContext : TeamFoundationRequestContext, 
    accessMapping : AccessMapping, 
    makeDefault : boolean
) : AccessMapping

Parameters

  • accessMapping
    Type: Microsoft.VisualStudio.Services.Location.AccessMapping

    This is the url that the ___location service relative url should be appended to. This can only be null or empty if this is an update of an existing access mapping and the ___location service url should not be updated.

  • makeDefault
    Type: System.Boolean

    If makeDefault is set to true, this access mapping is made the default, otherwise the current default is unaffected

Return Value

Type: Microsoft.VisualStudio.Services.Location.AccessMapping
The access mapping for the supplied moniker

.NET Framework Security

See Also

Reference

ITeamFoundationLocationService Interface

Microsoft.TeamFoundation.Framework.Server Namespace