This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Gets the user name of the current user.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(Name = "Security.User.LoginName")]
public static string GetUserName(
	 context
)
Visual Basic (Declaration)Copy imageCopy Code
<(Name := "Security.User.LoginName")> _
Public Shared Function GetUserName ( _
	context As  _
) As 

Parameters

context
ICmsContext
The context.

Return Value

Login name of the user currently logged on.

See Also

Advanced