RegisteredServers Class

Note: This API is now obsolete.

Manages the list of registered servers in the System registry.

System.Object
  Microsoft.TeamFoundation.Client.RegisteredServers

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

[ObsoleteAttribute("Use RegisteredTfsConnections")]
public static class RegisteredServers

The RegisteredServers type exposes the following members.

  NameDescription
Public methodStatic memberAddServer(TeamFoundationServer)Adds the specified server to the registered servers list.
Public methodStatic memberAddServer(String, String) Obsolete. (Obsolete) Using this method will cause an error.
Public methodStatic memberGetAutoReconnectGets the AutoReconnect status for the server that is associated to the specified URL.
Public methodStatic memberGetOfflineGets the Offline status of the server that is specified by the URL.
Public methodStatic memberGetServerForUri(String)Gets the name of the server that is associated with the specified URL.
Public methodStatic memberGetServerForUri(Uri)Gets the name of the server that has the specified URI.
Public methodStatic memberGetServerNamesGets a list of registered server names.
Public methodStatic memberGetServers()Gets an array of all registered servers.
Public methodStatic memberGetServers(ICredentialsProvider)Gets an array of all registered servers.
Public methodStatic memberGetUriForServerGets the uniform resource identifier (URI) of the server that has the specified name.
Public methodStatic memberRemoveServerRemoves the server that is associated with the specified name from the registered list.
Public methodStatic memberSetAutoReconnectSets the AutoReconnect status for the server that is associated with the specified URL.
Public methodStatic memberSetOfflineSets the Offline status of the server that is associated to the specified URL.
Top

This class is obsolete. Use RegisteredTfsConnections instead.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft