Removes the ServiceDefinition with the specified service type and service identifier from the location serivce.
Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Sub RemoveServiceDefinition ( _
    serviceType As String, _
    serviceIdentifier As Guid _
)
void RemoveServiceDefinition(
    string serviceType,
    Guid serviceIdentifier
)
void RemoveServiceDefinition(
    String^ serviceType, 
    Guid serviceIdentifier
)
abstract RemoveServiceDefinition : 
        serviceType:string * 
        serviceIdentifier:Guid -> unit
function RemoveServiceDefinition(
    serviceType : String, 
    serviceIdentifier : Guid
)
Parameters
- serviceType 
 Type: System.String- The service type of the ServiceDefinition to remove. 
- serviceIdentifier 
 Type: System.Guid- The service identifier of the ServiceDefinition to remove. 
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.