Megosztás a következőn keresztül:


ServiceDefinition.AddLocationMapping Method

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

  • location
    Type: System.String

    The 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

See Also

Reference

ServiceDefinition Class

Microsoft.TeamFoundation.Framework.Client Namespace