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 LocationMapping for the provided AccessMapping and location to the ServiceDefinition. Note that if a LocationMapping already exists for the provided AccessMapping, it will be overwritten. Also, this method should only be called on ServiceDefinitions that are FullyQualified.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.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.Client.AccessMappingThe AccessMapping this LocationMapping corresponds to. This AccessMapping must already be registered in the location service.
location
Type: System.StringThe location that is associated with the provided AccessMapping. This value must not be null.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Throw if this ServiceDefinition does not have a RelativeToSetting of FullyQualified. |
.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.