Delen via


TeamFoundationServicingService.AddServicingOperation Method (TeamFoundationRequestContext, String, IEnumerable<String>, IEnumerable<String>)

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
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub AddServicingOperation ( _
    requestContext As TeamFoundationRequestContext, _
    servicingOperation As String, _
    stepGroups As IEnumerable(Of String), _
    operationExecutionHandlers As IEnumerable(Of String) _
)
public void AddServicingOperation(
    TeamFoundationRequestContext requestContext,
    string servicingOperation,
    IEnumerable<string> stepGroups,
    IEnumerable<string> operationExecutionHandlers
)
public:
void AddServicingOperation(
    TeamFoundationRequestContext^ requestContext, 
    String^ servicingOperation, 
    IEnumerable<String^>^ stepGroups, 
    IEnumerable<String^>^ operationExecutionHandlers
)
member AddServicingOperation : 
        requestContext:TeamFoundationRequestContext * 
        servicingOperation:string * 
        stepGroups:IEnumerable<string> * 
        operationExecutionHandlers:IEnumerable<string> -> unit
public function AddServicingOperation(
    requestContext : TeamFoundationRequestContext, 
    servicingOperation : String, 
    stepGroups : IEnumerable<String>, 
    operationExecutionHandlers : IEnumerable<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 the stepGroups collection is not defined in the configuration database.

.NET Framework Security

See Also

Reference

TeamFoundationServicingService Class

AddServicingOperation Overload

Microsoft.TeamFoundation.Framework.Server Namespace