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)

void AddServicingOperation(
	string servicingOperation,
	IEnumerable<string> stepGroups,
	IEnumerable<string> handlers
)

Parameters

servicingOperation
Type: System.String

A servicing operation to be added, such as Install

stepGroups
Type: System.Collections.Generic.IEnumerable<String>
handlers
Type: System.Collections.Generic.IEnumerable<String>

ExceptionCondition
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.

Show: