GetUserProviderKey Method
Syntax
GetUserProviderKey as A ()
GetUserProviderKey as A (UserName as C)
Arguments
- UserNameCharacter
Optional. Retrieve the provider key for a user. If no user name is specified then the current user will be used.
Returns
- resultAny Type
Returns the provider defined key for a user.
Description
Gets the provider defined key for a user.
Discussion
Context.Security.GetuserProviderKey() gets the provider defined key for a user. Check Context.Security.CallResult.Success before using the return value. The provider key for a user is defined by the underlying security store. It can be used with Context.Security.GetUser to get the user's name. When used with Context.Security.GetUser the value must be of the same type as returned from this method.