This documentation is archived and is not being maintained.
ILocationService.RemoveServiceDefinition Method (ServiceDefinition)
Visual Studio 2013
Removes the specified ServiceDefinition from the location service.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Parameters
- serviceDefinition
- Type: Microsoft.TeamFoundation.Framework.Client.ServiceDefinition
The ServiceDefinition to remove. This must be a ServiceDefinition that is already registered in the location service. Equality is decided by matching the service type and the identifier.
| Exception | Condition |
|---|---|
| IllegalDeleteSelfReferenceServiceDefinitionException | Thrown if the caller tries to delete the self-refernce (location service) ServiceDefinition. |
- 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.
Show: