| ExtensionMethodsGetUserIdT Method (IIdentity) |
Gets the user identifier for a given identity.
Namespace:
SanteDB.Core
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax public static T GetUserId<T>(
IIdentity source
)
where T : IConvertible
Public Shared Function GetUserId(Of T As IConvertible) (
source As IIdentity
) As T
public:
generic<typename T>
where T : IConvertible
static T GetUserId(
IIdentity^ source
)
static member GetUserId :
source : IIdentity -> 'T when 'T : IConvertible
Parameters
- source
- Type: System.Security.PrincipalIIdentity
[Missing <param name="source"/> documentation for "M:SanteDB.Core.ExtensionMethods.GetUserId``1(System.Security.Principal.IIdentity)"]
Type Parameters
- T
- The type of the identifier of the user.
Return Value
Type:
TReturns the users identifier, or null if unable to retrieve the users identifier.
See Also