Share via


ServiceDefinition.AddLocationMapping Method

Adds a location mapping for the provided access mapping and location to the service definition. Note that if a mapping already exists for the provided access mapping, it will be overwritten.

Namespace:  Microsoft.TeamFoundation.Server.Core.Location
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Public Sub AddLocationMapping ( _
    accessMapping As AccessMapping, _
    location As String _
)
public void AddLocationMapping(
    AccessMapping accessMapping,
    string location
)
public:
void AddLocationMapping(
    AccessMapping^ accessMapping, 
    String^ location
)
member AddLocationMapping : 
        accessMapping:AccessMapping * 
        location:string -> unit
public function AddLocationMapping(
    accessMapping : AccessMapping, 
    location : String
)

Parameters

  • location
    Type: System.String

    This value must be null if the RelativeToSetting for this ServiceDefinition is something other than FullyQualified. If this ServiceDefinition has a RelativeToSetting of FullyQualified, this value must not be null and should be the location where this service resides for this access mapping.

.NET Framework Security

See Also

Reference

ServiceDefinition Class

Microsoft.TeamFoundation.Server.Core.Location Namespace