Click or drag to resize

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

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: T
Returns the users identifier, or null if unable to retrieve the users identifier.
See Also