 | ExtensionMethodsGetUserIdentity Method |
Get the user identity
Namespace: SanteDB.CoreAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic static IIdentity GetUserIdentity(
this AuthenticationContext authContext
)
<ExtensionAttribute>
Public Shared Function GetUserIdentity (
authContext As AuthenticationContext
) As IIdentity
public:
[ExtensionAttribute]
static IIdentity^ GetUserIdentity(
AuthenticationContext^ authContext
)
[<ExtensionAttribute>]
static member GetUserIdentity :
authContext : AuthenticationContext -> IIdentity Parameters
- authContext AuthenticationContext
- The authentication context from which the user identity should be obtained
Return Value
IIdentityThe user identity from the authentication context
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
AuthenticationContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also