Removes the specified ServiceDefinitions from the location service.
Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Sub RemoveServiceDefinitions ( _
    serviceDefinitions As IEnumerable(Of ServiceDefinition) _
)
void RemoveServiceDefinitions(
    IEnumerable<ServiceDefinition> serviceDefinitions
)
void RemoveServiceDefinitions(
    IEnumerable<ServiceDefinition^>^ serviceDefinitions
)
abstract RemoveServiceDefinitions : 
        serviceDefinitions:IEnumerable<ServiceDefinition> -> unit
function RemoveServiceDefinitions(
    serviceDefinitions : IEnumerable<ServiceDefinition>
)
Parameters
- serviceDefinitions 
 Type: System.Collections.Generic.IEnumerable<ServiceDefinition>- The ServiceDefinitions to remove. These must be ServiceDefinitions that are already registered in the location service. Equality is decided by matching the service type and the identifier. 
Exceptions
| Exception | Condition | 
|---|---|
| IllegalDeleteSelfReferenceServiceDefinitionException | Thrown if the caller tries to delete the self-refernce (location service) ServiceDefinition. | 
.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.