TeamFoundationRequestContext.GetAuthenticatedIdentity Method
The Authenticated identity is the identity of the user/service that is making this request. In the case of impersonation, this identity will be the one impersonating the [UserContext]. When impersonation is not being used, this identity will be the same as the one from the [UserContext].
This is a function that has an out parameter instead of a property because it should not be easily confused with the [UserContext], which is the identity callers will be looking for most of the time.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Overridable Sub GetAuthenticatedIdentity ( _
<OutAttribute> ByRef authenticatedIdentity As IdentityDescriptor _
)
public virtual void GetAuthenticatedIdentity(
out IdentityDescriptor authenticatedIdentity
)
public:
virtual void GetAuthenticatedIdentity(
[OutAttribute] IdentityDescriptor^% authenticatedIdentity
)
abstract GetAuthenticatedIdentity :
authenticatedIdentity:IdentityDescriptor byref -> unit
override GetAuthenticatedIdentity :
authenticatedIdentity:IdentityDescriptor byref -> unit
public function GetAuthenticatedIdentity(
authenticatedIdentity : IdentityDescriptor
)
Parameters
authenticatedIdentity
Type: Microsoft.TeamFoundation.Framework.Server.IdentityDescriptor%Returns the identity responsible for making this request.
.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.