TfsTeamProjectCollection 建構函式 (RegisteredProjectCollection, ICredentials, 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 ( _
projectCollection As RegisteredProjectCollection, _
credentials As ICredentials, _
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(
RegisteredProjectCollection projectCollection,
ICredentials credentials,
ICredentialsProvider credentialsProvider
)
參數
- projectCollection
型別:Microsoft.TeamFoundation.Client.RegisteredProjectCollection
註冊 Team 專案集合。
- credentials
型別:System.Net.ICredentials
驗證認證。
- credentialsProvider
型別:Microsoft.TeamFoundation.Client.ICredentialsProvider
用來取得認證,當目前環境的驗證失敗。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。