TfsConnection.GetAuthenticatedIdentity Method
Gets the identity that authenticated with the server.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Déclaration
Public Sub GetAuthenticatedIdentity ( _
<OutAttribute> ByRef identity As TeamFoundationIdentity _
)
public void GetAuthenticatedIdentity(
out TeamFoundationIdentity identity
)
public:
void GetAuthenticatedIdentity(
[OutAttribute] TeamFoundationIdentity^% identity
)
member GetAuthenticatedIdentity :
identity:TeamFoundationIdentity byref -> unit
public function GetAuthenticatedIdentity(
identity : TeamFoundationIdentity
)
Parameters
- identity
Type: Microsoft.TeamFoundation.Framework.Client.TeamFoundationIdentity%
The variable to store the retrieved identity.
Remarks
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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.