ILocationService.SaveServiceDefinition Method
Saves the provided ServiceDefinition within the location service. This operation will assign the Identifier property on the ServiceDefinition object 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 SaveServiceDefinition ( _
serviceDefinition As ServiceDefinition _
)
void SaveServiceDefinition(
ServiceDefinition serviceDefinition
)
void SaveServiceDefinition(
ServiceDefinition^ serviceDefinition
)
abstract SaveServiceDefinition :
serviceDefinition:ServiceDefinition -> unit
function SaveServiceDefinition(
serviceDefinition : ServiceDefinition
)
Parameters
serviceDefinition
Type: Microsoft.TeamFoundation.Framework.Client.ServiceDefinitionThe ServiceDefinition to save. This object will be updated with a new Identifier if one is not already assigned.
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
- 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.