TeamFoundationServer Constructor (Uri, ICredentials, ICredentialsProvider)
Initializes a new TeamFoundationServer object that is associated with the specified URI, credentials and credentials provider.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Sub New ( _
uri As Uri, _
credentials As ICredentials, _
credentialsProvider As ICredentialsProvider _
)
public TeamFoundationServer(
Uri uri,
ICredentials credentials,
ICredentialsProvider credentialsProvider
)
public:
TeamFoundationServer(
Uri^ uri,
ICredentials^ credentials,
ICredentialsProvider^ credentialsProvider
)
new :
uri:Uri *
credentials:ICredentials *
credentialsProvider:ICredentialsProvider -> TeamFoundationServer
public function TeamFoundationServer(
uri : Uri,
credentials : ICredentials,
credentialsProvider : ICredentialsProvider
)
Parameters
uri
Type: System.UriThe URI of the server.
credentials
Type: System.Net.ICredentialsThe credentials that are used to authenticate the user.
credentialsProvider
Type: Microsoft.TeamFoundation.Client.ICredentialsProviderThe credentials provider to use if the credentials of the current environment fail.
.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.