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.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.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
accessMapping
Type: Microsoft.TeamFoundation.Framework.Server.AccessMappingThe access mapping this location mapping is for.
location
Type: System.StringThis 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
- 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.