Click or drag to resize

ExtensionMethodsGetUserIdT(IIdentity) Method

Gets the user identifier for a given identity.

Namespace: SanteDB.Core
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public static T GetUserId<T>(
	IIdentity source
)
where T : IConvertible

Parameters

source  IIdentity

[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

T
Returns the users identifier, or null if unable to retrieve the users identifier.
See Also