共用方式為


TfsTeamProjectCollection 建構函式 (Uri, ICredentialsProvider)

注意:這個應用程式開發介面現在已經過時。

初始化 TfsTeamProjectCollection 類別的新執行個體。

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

語法

'宣告
<ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See constructors which utilize TfsClientCredentials instead.")> _
Public Sub New ( _
    uri As Uri, _
    credentialsProvider As ICredentialsProvider _
)
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See constructors which utilize TfsClientCredentials instead.")]
public TfsTeamProjectCollection(
    Uri uri,
    ICredentialsProvider credentialsProvider
)

參數

例外狀況

例外狀況 條件
ArgumentNullException

uri 為 null 時引發。

.NET Framework 安全性

請參閱

參考

TfsTeamProjectCollection 類別

TfsTeamProjectCollection 多載

Microsoft.TeamFoundation.Client 命名空間