This documentation is archived and is not being maintained.

ILocationService.RemoveServiceDefinition Method (String, Guid)

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)

void RemoveServiceDefinition(
	string serviceType,
	Guid serviceIdentifier
)

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.

ExceptionCondition
IllegalDeleteSelfReferenceServiceDefinitionException

Thrown if the caller tries to delete the self-refernce (location service) ServiceDefinition.

Show: