Partager via


TeamFoundationConnectionService.Connect Method

Provides the client with all of the information they need to know in order to work with the TeamFoundationConnection object. Properties of ConnectionData that do not have a corresponding entries in connectOptions cost very little to calculate and will be returned every type. If no changes have occured since lastChangeId, no service data will be returned. If this is the first time this method is being called or the caller wants all of the information returned then -1 should be passed for lastChangeId.

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

Syntax

'Declaration
Public Function Connect ( _
    requestContext As TeamFoundationRequestContext, _
    connectOptions As Integer, _
    lastChangeId As Integer, _
    supportedFeatures As TeamFoundationSupportedFeatures _
) As ConnectionData
public ConnectionData Connect(
    TeamFoundationRequestContext requestContext,
    int connectOptions,
    int lastChangeId,
    TeamFoundationSupportedFeatures supportedFeatures
)
public:
ConnectionData^ Connect(
    TeamFoundationRequestContext^ requestContext, 
    int connectOptions, 
    int lastChangeId, 
    TeamFoundationSupportedFeatures supportedFeatures
)
member Connect : 
        requestContext:TeamFoundationRequestContext * 
        connectOptions:int * 
        lastChangeId:int * 
        supportedFeatures:TeamFoundationSupportedFeatures -> ConnectionData
public function Connect(
    requestContext : TeamFoundationRequestContext, 
    connectOptions : int, 
    lastChangeId : int, 
    supportedFeatures : TeamFoundationSupportedFeatures
) : ConnectionData

Parameters

  • connectOptions
    Type: System.Int32

    Bit flags that represent what data should be returned by the method. Each bit is an option, the valid bits are: None = 0, IncludeServices = 1 By default, the username, client access mapping and server version will be returned.

  • lastChangeId
    Type: System.Int32

    The lastChangeId value that was returned the last time this information was updated.

Return Value

Type: Microsoft.TeamFoundation.Server.Core.Location.ConnectionData
ConnectionProperties for the flags that were set to true.

.NET Framework Security

See Also

Reference

TeamFoundationConnectionService Class

Microsoft.TeamFoundation.Server.Core.Location Namespace