Share via


RegisteredServers.GetServerNames Method

Retrieves a list of authorized servers defined in the registry.

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

Syntax

'Declaration
Public Shared Function GetServerNames As String()
'Usage
Dim returnValue As String()

returnValue = RegisteredServers.GetServerNames()
public static string[] GetServerNames()
public:
static array<String^>^ GetServerNames()
public static function GetServerNames() : String[]

Return Value

Type: array<System.String[]
An array of friendly names of the servers.

Remarks

A combined list of servers stored in HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE are returned. Servers defined in HKEY_LOCAL_MACHINE have the priority and will override the servers defined in HKEY_CURRENT_USER. In both instances, they will be stored in Software\Microsoft\VisualStudio\8.0\TeamFoundation\Servers

.NET Framework Security

See Also

Reference

RegisteredServers Class

RegisteredServers Members

Microsoft.TeamFoundation.Client Namespace