共用方式為


TeamProjectCollectionService.QueueServiceCollections Method (TeamFoundationRequestContext, IEnumerable<TeamProjectCollectionProperties>, Boolean, array<String )

Queues jobs to service collections.

Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
Public Function QueueServiceCollections ( _
    requestContext As TeamFoundationRequestContext, _
    collections As IEnumerable(Of TeamProjectCollectionProperties), _
    stopHostsNow As Boolean, _
    ParamArray servicingOperations As String() _
) As List(Of ServicingJobDetail)
public List<ServicingJobDetail> QueueServiceCollections(
    TeamFoundationRequestContext requestContext,
    IEnumerable<TeamProjectCollectionProperties> collections,
    bool stopHostsNow,
    params string[] servicingOperations
)
public:
List<ServicingJobDetail^>^ QueueServiceCollections(
    TeamFoundationRequestContext^ requestContext, 
    IEnumerable<TeamProjectCollectionProperties^>^ collections, 
    bool stopHostsNow, 
    ... array<String^>^ servicingOperations
)
member QueueServiceCollections : 
        requestContext:TeamFoundationRequestContext * 
        collections:IEnumerable<TeamProjectCollectionProperties> * 
        stopHostsNow:bool * 
        servicingOperations:string[] -> List<ServicingJobDetail> 
public function QueueServiceCollections(
    requestContext : TeamFoundationRequestContext, 
    collections : IEnumerable<TeamProjectCollectionProperties>, 
    stopHostsNow : boolean, 
    ... servicingOperations : String[]
) : List<ServicingJobDetail>

Parameters

  • stopHostsNow
    Type: System.Boolean

    Indicates weather the collection hosts must be stopped before queuing servicing jobs.

  • servicingOperations
    Type: array<System.String[]

    The servicing operation(s) to perform on the collections.

Return Value

Type: System.Collections.Generic.List<ServicingJobDetail>
The set of queued servicing jobs for the specified collections.

.NET Framework Security

See Also

Reference

TeamProjectCollectionService Class

QueueServiceCollections Overload

Microsoft.TeamFoundation.Server.Core Namespace