Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
accessMapping
Type: Microsoft.TeamFoundation.Server.Core.Location.AccessMappingThe access mapping this location mapping is for. This access mapping must already be registered in the LocationService. To create a new access mapping, see LocationService.ConfigureAccessMapping
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.