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.StringA servicing operation to be added, such as Install.
stepGroups
Type: System.Collections.Generic.List<String>A collection of servicing step groups.
executionHandlers
Type: System.Collections.Generic.List<String>A collection of servicing operation execution handlers. Each entry specifies a full type name.
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
- 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
TeamProjectCollectionWebService Class
Microsoft.TeamFoundation.Framework.Server.WebServices Namespace