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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context this call is associated with.
accessMapping
Type: Microsoft.VisualStudio.Services.Location.AccessMappingThis 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.BooleanIf 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
- 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.