共用方式為


TeamFoundationServer Constructor (Uri, ICredentialsProvider)

Initializes a new TeamFoundationServer object that is associated with the specified URI and credentials provider.

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

Syntax

'Declaration
Public Sub New ( _
    uri As Uri, _
    credentialsProvider As ICredentialsProvider _
)
public TeamFoundationServer(
    Uri uri,
    ICredentialsProvider credentialsProvider
)
public:
TeamFoundationServer(
    Uri^ uri, 
    ICredentialsProvider^ credentialsProvider
)
new : 
        uri:Uri * 
        credentialsProvider:ICredentialsProvider -> TeamFoundationServer
public function TeamFoundationServer(
    uri : Uri, 
    credentialsProvider : ICredentialsProvider
)

Parameters

.NET Framework Security

See Also

Reference

TeamFoundationServer Class

TeamFoundationServer Overload

Microsoft.TeamFoundation.Client Namespace