Delen via


TeamFoundationServerFactory.GetServer Method (String)

Gets the TeamFoundationServer object that is associated with the specified URL.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Shared Function GetServer ( _
    url As String _
) As TeamFoundationServer
public static TeamFoundationServer GetServer(
    string url
)
public:
static TeamFoundationServer^ GetServer(
    String^ url
)
static member GetServer : 
        url:string -> TeamFoundationServer
public static function GetServer(
    url : String
) : TeamFoundationServer

Parameters

Return Value

Type: Microsoft.TeamFoundation.Client.TeamFoundationServer
The TeamFoundationServer object that is associated with the specified URL.

Remarks

If a TeamFoundationServer object that has the specified URL exists in the cache, it is returned. If not, a new TeamFoundation Server object is created by using a credentials provider, if any, that is appropriate for the environment. The created TeamFoundationServer object is placed in the cache and associated with the URL that is resolved for the name.

.NET Framework Security

See Also

Reference

TeamFoundationServerFactory Class

GetServer Overload

Microsoft.TeamFoundation.Client Namespace