Freigeben über


ILocationService.SaveServiceDefinitions Method

Saves the provided ServiceDefinitions within the location service. This operation will assign the Identifier property on the ServiceDefinition objects if one is not already assigned. Any AccessMappings referenced in the LocationMappings property must already be configured with the location service.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Sub SaveServiceDefinitions ( _
    serviceDefinitions As IEnumerable(Of ServiceDefinition) _
)
void SaveServiceDefinitions(
    IEnumerable<ServiceDefinition> serviceDefinitions
)
void SaveServiceDefinitions(
    IEnumerable<ServiceDefinition^>^ serviceDefinitions
)
abstract SaveServiceDefinitions : 
        serviceDefinitions:IEnumerable<ServiceDefinition> -> unit
function SaveServiceDefinitions(
    serviceDefinitions : IEnumerable<ServiceDefinition>
)

Parameters

Exceptions

Exception Condition
InvalidServiceDefinitionException

The ServiceDefinition being saved is not valid.

AccessMappingNotRegisteredException

The ServiceDefinition references an AccessMapping that has not been registered.

DuplicateLocationMappingException

Thrown if a given AccessMapping has two or more LocationMappings on a ServiceDefinition.

.NET Framework Security

See Also

Reference

ILocationService Interface

Microsoft.TeamFoundation.Framework.Client Namespace