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