TfsTeamProjectCollectionFactory.GetTeamProjectCollection 方法 (RegisteredProjectCollection, ICredentialsProvider)

注意:此 API 现在已废弃不用。

获取与指定的 RegisteredProjectCollection 实例和回退凭据提供程序的 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 GetTeamProjectCollection(RegisteredProjectCollection) instead.",  _
    False)> _
Public Shared Function GetTeamProjectCollection ( _
    projectCollection As RegisteredProjectCollection, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TfsTeamProjectCollection
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetTeamProjectCollection(RegisteredProjectCollection) instead.", 
    false)]
public static TfsTeamProjectCollection GetTeamProjectCollection(
    RegisteredProjectCollection projectCollection,
    ICredentialsProvider fallbackCredentialsProvider
)

参数

返回值

类型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
与服务器在指定的 RegisteredProjectCollection 中描述的 TfsTeamProjectCollection 实例。

.NET Framework 安全性

请参阅

参考

TfsTeamProjectCollectionFactory 类

GetTeamProjectCollection 重载

Microsoft.TeamFoundation.Client 命名空间