Share via


TfsConnection.GetAuthenticatedIdentity 方法

取得已向伺服器驗證的識別。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
Public Sub GetAuthenticatedIdentity ( _
    <OutAttribute> ByRef identity As TeamFoundationIdentity _
)
public void GetAuthenticatedIdentity(
    out TeamFoundationIdentity identity
)

參數

備註

When Team Foundation Server impersonation is used, the identity that is returned will be the identity that is performing the impersonation, not the user who is making the call. Therefore, the AuthorizedIdentity is usually the correct identity to use from this class.

.NET Framework 安全性

請參閱

參考

TfsConnection 類別

Microsoft.TeamFoundation.Client 命名空間