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.StringA servicing operation to be added, such as Install
- stepGroups
Type: System.Collections.Generic.IEnumerable<String>
- handlers
Type: System.Collections.Generic.IEnumerable<String>
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ITeamProjectCollectionServicing Interface