Changes the endpoint—the incoming URI, such as http://machinename:9191—for the currently registered service host.
Namespace:  Microsoft.TeamFoundation.Build.Config
Assembly:  Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)
Syntax
'Declaration
Public Shared Sub ChangeEndpoint ( _
    endpoint As String, _
    serverCertificate As X509Certificate2 _
)
public static void ChangeEndpoint(
    string endpoint,
    X509Certificate2 serverCertificate
)
public:
static void ChangeEndpoint(
    String^ endpoint, 
    X509Certificate2^ serverCertificate
)
static member ChangeEndpoint : 
        endpoint:string * 
        serverCertificate:X509Certificate2 -> unit
public static function ChangeEndpoint(
    endpoint : String, 
    serverCertificate : X509Certificate2
)
Parameters
- endpoint 
 Type: System.String- The new endpoint for the currently registered service host. 
- serverCertificate 
 Type: System.Security.Cryptography.X509Certificates.X509Certificate2- The X509 certificate to use for server authentication. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.