Delen via


LocationWebService.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.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function Connect ( _
    connectOptions As Integer, _
    lastChangeId As Integer, _
    features As Integer _
) As ConnectionData
[WebMethodAttribute]
public ConnectionData Connect(
    int connectOptions,
    int lastChangeId,
    int features
)
[WebMethodAttribute]
public:
ConnectionData^ Connect(
    int connectOptions, 
    int lastChangeId, 
    int features
)
[<WebMethodAttribute>]
member Connect : 
        connectOptions:int * 
        lastChangeId:int * 
        features:int -> ConnectionData
public function Connect(
    connectOptions : int, 
    lastChangeId : int, 
    features : int
) : 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

LocationWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace