共用方式為


RegisteredServers.AddServer Method (String, String)

Note: This API is now obsolete.

(Obsolete) Using this method will cause an error.

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

Syntax

'Declaration
<ObsoleteAttribute("Not supported", True)> _
Public Shared Sub AddServer ( _
    serverFriendlyName As String, _
    serverUrl As String _
)
[ObsoleteAttribute("Not supported", true)]
public static void AddServer(
    string serverFriendlyName,
    string serverUrl
)
[ObsoleteAttribute(L"Not supported", true)]
public:
static void AddServer(
    String^ serverFriendlyName, 
    String^ serverUrl
)
[<ObsoleteAttribute("Not supported", true)>]
static member AddServer : 
        serverFriendlyName:string * 
        serverUrl:string -> unit
public static function AddServer(
    serverFriendlyName : String, 
    serverUrl : String
)

Parameters

.NET Framework Security

See Also

Reference

RegisteredServers Class

AddServer Overload

Microsoft.TeamFoundation.Client Namespace