ITeamProjectCollectionServicing.AddServicingOperation Method (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 calling this method.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Sub AddServicingOperation ( _
    servicingOperation As String, _
    stepGroups As IEnumerable(Of String), _
    handlers As IEnumerable(Of String) _
)
void AddServicingOperation(
    string servicingOperation,
    IEnumerable<string> stepGroups,
    IEnumerable<string> handlers
)
void AddServicingOperation(
    String^ servicingOperation, 
    IEnumerable<String^>^ stepGroups, 
    IEnumerable<String^>^ handlers
)
abstract AddServicingOperation : 
        servicingOperation:string * 
        stepGroups:IEnumerable<string> * 
        handlers:IEnumerable<string> -> unit
function AddServicingOperation(
    servicingOperation : String, 
    stepGroups : IEnumerable<String>, 
    handlers : 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 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

ITeamProjectCollectionServicing Interface

AddServicingOperation Overload

Microsoft.TeamFoundation.Framework.Client Namespace