Delen via


ITeamProjectCollectionServicing.AddServicingOperation Method (Stream)

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 calling this method.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Sub AddServicingOperation ( _
    xmlStream As Stream _
)
void AddServicingOperation(
    Stream xmlStream
)
void AddServicingOperation(
    Stream^ xmlStream
)
abstract AddServicingOperation : 
        xmlStream:Stream -> unit
function AddServicingOperation(
    xmlStream : Stream
)

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 the configuration database.

ServicingStepGroupNotFoundException

At least one servicing step group is not defined in the configuration database.

.NET Framework Security

See Also

Reference

ITeamProjectCollectionServicing Interface

AddServicingOperation Overload

Microsoft.TeamFoundation.Framework.Client Namespace