TeamFoundationServicingService.AddServicingOperation Method (TeamFoundationRequestContext, Stream, TeamFoundationLock)
Adds a new servicing operation to the configuration database. All servicing step groups specified in the XML file must be added to the configuration database before you call this method.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub AddServicingOperation ( _
requestContext As TeamFoundationRequestContext, _
xmlStream As Stream, _
servicingLock As TeamFoundationLock _
)
public void AddServicingOperation(
TeamFoundationRequestContext requestContext,
Stream xmlStream,
TeamFoundationLock servicingLock
)
public:
void AddServicingOperation(
TeamFoundationRequestContext^ requestContext,
Stream^ xmlStream,
TeamFoundationLock^ servicingLock
)
member AddServicingOperation :
requestContext:TeamFoundationRequestContext *
xmlStream:Stream *
servicingLock:TeamFoundationLock -> unit
public function AddServicingOperation(
requestContext : TeamFoundationRequestContext,
xmlStream : Stream,
servicingLock : TeamFoundationLock
)
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextA request context.
xmlStream
Type: System.IO.StreamA stream for an XML file that defines servicing operation.
servicingLock
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationLockAn exclusive servicing lock or null.
Exceptions
Exception | Condition |
---|---|
ServicingOperationAlreadyExistsException | An operation with the same name already exists in the configuration database. |
ServicingStepGroupNotFoundException | At least one servicing step group 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
TeamFoundationServicingService Class