Share via


RegisteredServers Class

Note: This API is now obsolete.

Manages the list of registered servers in the System registry.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Client.RegisteredServers

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

Syntax

'Declaration
<ObsoleteAttribute("Use RegisteredTfsConnections")> _
Public NotInheritable Class RegisteredServers
[ObsoleteAttribute("Use RegisteredTfsConnections")]
public static class RegisteredServers
[ObsoleteAttribute(L"Use RegisteredTfsConnections")]
public ref class RegisteredServers abstract sealed
[<AbstractClass>]
[<Sealed>]
[<ObsoleteAttribute("Use RegisteredTfsConnections")>]
type RegisteredServers =  class end
public final class RegisteredServers

The RegisteredServers type exposes the following members.

Methods

  Name Description
Public methodStatic member AddServer(TeamFoundationServer) Adds the specified server to the registered servers list.
Public methodStatic member AddServer(String, String) Obsolete. (Obsolete) Using this method will cause an error.
Public methodStatic member GetAutoReconnect Gets the AutoReconnect status for the server that is associated to the specified URL.
Public methodStatic member GetOffline Gets the Offline status of the server that is specified by the URL.
Public methodStatic member GetServerForUri(String) Gets the name of the server that is associated with the specified URL.
Public methodStatic member GetServerForUri(Uri) Gets the name of the server that has the specified URI.
Public methodStatic member GetServerNames Gets a list of registered server names.
Public methodStatic member GetServers() Gets an array of all registered servers.
Public methodStatic member GetServers(ICredentialsProvider) Gets an array of all registered servers.
Public methodStatic member GetUriForServer Gets the uniform resource identifier (URI) of the server that has the specified name.
Public methodStatic member RemoveServer Removes the server that is associated with the specified name from the registered list.
Public methodStatic member SetAutoReconnect Sets the AutoReconnect status for the server that is associated with the specified URL.
Public methodStatic member SetOffline Sets the Offline status of the server that is associated to the specified URL.

Top

Remarks

This class is obsolete. Use RegisteredTfsConnections instead.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Client Namespace