TfsTeamProjectCollection 构造函数 (RegisteredProjectCollection, ICredentials, ICredentialsProvider, IdentityDescriptor)
注意:此 API 现在已废弃不用。
初始化 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, _
identityToImpersonate As IdentityDescriptor _
)
[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,
IdentityDescriptor identityToImpersonate
)
参数
- projectCollection
类型:Microsoft.TeamFoundation.Client.RegisteredProjectCollection
注册的团队项目集合。
- credentials
类型:System.Net.ICredentials
用于验证用户。
- credentialsProvider
类型:Microsoft.TeamFoundation.Client.ICredentialsProvider
用于获取凭据,在当前环境的凭据失败。
- identityToImpersonate
类型:Microsoft.TeamFoundation.Framework.Client.IdentityDescriptor
模拟标识。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。