Authenticates the connection, if it was not previously authenticated.
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
'Declaration Public Sub EnsureAuthenticated
public void EnsureAuthenticated()
public: void EnsureAuthenticated()
member EnsureAuthenticated : unit -> unit
public function EnsureAuthenticated()
This method will use the credentials provider that is specified in the constructor to prompt for credentials if authentication fails.
.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.