Attach a team project collection that has been detached from a Team Foundation Server of version 2010 or later.
Namespace:  Microsoft.TeamFoundation.Server.Core
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
Public Function QueueAttachCollection ( _
    requestContext As TeamFoundationRequestContext, _
    collectionProperties As TeamProjectCollectionProperties, _
    servicingTokens As IDictionary(Of String, String), _
    cloneCollection As Boolean _
) As ServicingJobDetail
public ServicingJobDetail QueueAttachCollection(
    TeamFoundationRequestContext requestContext,
    TeamProjectCollectionProperties collectionProperties,
    IDictionary<string, string> servicingTokens,
    bool cloneCollection
)
public:
ServicingJobDetail^ QueueAttachCollection(
    TeamFoundationRequestContext^ requestContext, 
    TeamProjectCollectionProperties^ collectionProperties, 
    IDictionary<String^, String^>^ servicingTokens, 
    bool cloneCollection
)
member QueueAttachCollection : 
        requestContext:TeamFoundationRequestContext * 
        collectionProperties:TeamProjectCollectionProperties * 
        servicingTokens:IDictionary<string, string> * 
        cloneCollection:bool -> ServicingJobDetail
public function QueueAttachCollection(
    requestContext : TeamFoundationRequestContext, 
    collectionProperties : TeamProjectCollectionProperties, 
    servicingTokens : IDictionary<String, String>, 
    cloneCollection : boolean
) : ServicingJobDetail
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
collectionProperties
Type: Microsoft.TeamFoundation.Framework.Server.TeamProjectCollectionPropertiesThe collection properties to use when attaching the collection. CollectionName, VirtualDirectory and Description can be optionally set.
servicingTokens
Type: System.Collections.Generic.IDictionary<String, String>The servicing tokens to use when running the AttachCollection Servicing Operation in the job service.
cloneCollection
Type: System.BooleanTrue if this collection should be a clone of the collection that was detached. If true, the collection instance id will get regenerated.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.ServicingJobDetail
Returns the ServicingJobDetail object for the job that was queued to attach the collection
.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.