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