Class UserMacroIdentityHelper
- Namespace
- CMS.MacroEngine
- Assembly
- CMS.MacroEngine.dll
Provides utility methods for UserMacroIdentityInfo.
public class UserMacroIdentityHelper : AbstractHelper<UserMacroIdentityHelper>
- Inheritance
-
objectUserMacroIdentityHelper
- Inherited Members
- Extension Methods
Methods
SetMacroIdentity(IUserInfo, int)
Assigns MacroIdentityInfo identified by macroIdentityId
to userInfo
.
Clears user's identity when macroIdentityId
is 0.
public static void SetMacroIdentity(IUserInfo userInfo, int macroIdentityId)
Parameters
userInfo
IUserInfoUser whom to assign the macro identity.
macroIdentityId
intMacro identity identifier.
SetMacroIdentityInternal(IUserInfo, int)
Assigns MacroIdentityInfo identified by macroIdentityId
to userInfo
.
Clears user's identity when macroIdentityId
is 0.
protected virtual void SetMacroIdentityInternal(IUserInfo userInfo, int macroIdentityId)
Parameters
userInfo
IUserInfoUser whom to assign the macro identity.
macroIdentityId
intMacro identity identifier.