Share via


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 命名空间