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
)
參數
- identity
類型:Microsoft.TeamFoundation.Framework.Client.TeamFoundationIdentity%
要儲存所擷取之識別的變數。
備註
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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。