LocationWebService.Connect Method

Provides the client with all of the information that they must 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 occurred 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.Framework.Server.WebServices
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)


<WebMethodAttribute> _
Public Function Connect ( _
    connectOptions As Integer, _
    lastChangeId As Integer, _
    features As Integer _
) As ConnectionData
public ConnectionData Connect(
    int connectOptions,
    int lastChangeId,
    int features
ConnectionData^ Connect(
    int connectOptions, 
    int lastChangeId, 
    int features
member Connect : 
        connectOptions:int * 
        lastChangeId:int * 
        features:int -> ConnectionData
public function Connect(
    connectOptions : int, 
    lastChangeId : int, 
    features : int
) : ConnectionData


  • 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 as follows: 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.Framework.Server.ConnectionData
ConnectionProperties for the flags that were set to true.

.NET Framework Security

See Also


LocationWebService Class

Microsoft.TeamFoundation.Framework.Server.WebServices Namespace