Freigeben über


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. The reason this is a function with an out parameter instead of a property is because it should not be easily confused with the UserContext which is the identity callers will be looking for a majority 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

.NET Framework Security

See Also

Reference

TeamFoundationRequestContext Class

Microsoft.TeamFoundation.Framework.Server Namespace