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 you call this method.

Namespace:  Microsoft.TeamFoundation.Framework.Server.WebServices
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.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 in the configuration database.

ServicingStepGroupNotFoundException

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

AccessCheckException

.NET Framework Security

See Also

Reference

TeamProjectCollectionWebService Class

Microsoft.TeamFoundation.Framework.Server.WebServices Namespace