Delen via


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

  • xmlStream
    Type: System.IO.Stream

    A stream for an XML file that defines servicing operation.

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

See Also

Reference

TeamFoundationServicingService Class

AddServicingOperation Overload

Microsoft.TeamFoundation.Framework.Server Namespace