Share via


TfsTeamProjectCollectionFactory.GetTeamProjectCollection 方法 (Uri, ICredentialsProvider)

注意:此 API 现在已过时。

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

参数

  • uri
    类型:System.Uri
    运行 Team Foundation Server服务器的URI。

返回值

类型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
与指定的URI的服务器与指定的凭据提供程序的TfsTeamProjectCollection实例。

备注

如果指定的URI的TfsTeamProjectCollection对象在缓存中,它将返回。通过使用凭据提供程序,如果存在,否则,新TfsTeamProjectCollection创建实例为该环境的。创建的TfsTeamProjectCollection对象为名称解析的缓存中并与URI。

.NET Framework 安全性

请参见

参考

TfsTeamProjectCollectionFactory 类

GetTeamProjectCollection 重载

Microsoft.TeamFoundation.Client 命名空间