Share via


TfsConnection.EnsureAuthenticated 方法

驗證與 Team Foundation Server 的連接 (若之前尚未驗證)。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
Public Sub EnsureAuthenticated
public void EnsureAuthenticated()

備註

This method will use the ICredentialsProvider that is specified in the constructor to prompt for credentials if authentication fails.

.NET Framework 安全性

請參閱

參考

TfsConnection 類別

Microsoft.TeamFoundation.Client 命名空間