Delen via


TeamProjectCollectionWebService.AddServicingOperation Method

Adds a new servicing operation to the configuration database. All servicing step groups listed in the stepGroups collection must be added to the configuration database before calling this method.

Namespace:  Microsoft.TeamFoundation.Server.Core.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Sub AddServicingOperation ( _
    servicingOperation As String, _
    stepGroups As List(Of String), _
    executionHandlers As List(Of String) _
)
[WebMethodAttribute]
public void AddServicingOperation(
    string servicingOperation,
    List<string> stepGroups,
    List<string> executionHandlers
)
[WebMethodAttribute]
public:
void AddServicingOperation(
    String^ servicingOperation, 
    List<String^>^ stepGroups, 
    List<String^>^ executionHandlers
)
[<WebMethodAttribute>]
member AddServicingOperation : 
        servicingOperation:string * 
        stepGroups:List<string> * 
        executionHandlers:List<string> -> unit
public function AddServicingOperation(
    servicingOperation : String, 
    stepGroups : List<String>, 
    executionHandlers : List<String>
)

Parameters

  • servicingOperation
    Type: System.String

    A servicing operation to be added, such as Install.

Exceptions

Exception Condition
ServicingOperationAlreadyExistsException

An operation with the same name already exists the configuration database.

ServicingStepGroupNotFoundException

At least one servicing step group from stepGroups collection is not defined in the configuration database.

.NET Framework Security

See Also

Reference

TeamProjectCollectionWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace