共用方式為


TfsConfigurationServer 建構函式 (Uri, ICredentials, ICredentialsProvider, IdentityDescriptor)

注意:這個應用程式開發介面現在已經過時。

初始化 TfsConfigurationServer 物件的新執行個體。

命名空間:  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 ( _
    uri As Uri, _
    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 TfsConfigurationServer(
    Uri uri,
    ICredentials credentials,
    ICredentialsProvider credentialsProvider,
    IdentityDescriptor identityToImpersonate
)

參數

  • uri
    類型:System.Uri
    伺服器通用資源識別項執行 Team Foundation Server的 (URI)。

例外狀況

例外狀況 條件
ArgumentNullException

當 uri 或 credentials 是空的

.NET Framework 安全性

請參閱

參考

TfsConfigurationServer 類別

TfsConfigurationServer 多載

Microsoft.TeamFoundation.Client 命名空間

其他資源

從主控台應用程式連接到 Team Foundation Server

從主控台應用程式連接到 Team Foundation Server