Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.Server.Core.WebServices
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.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 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.