LoginUser method

Gets a user context object to establish a user.

Syntax


C++

HRESULT LoginUser (
   VARIANT User,
   ERUParameterType ParamType,
   IERUCustomContext** ppUserContext)

Scripting languages

Set Context = Object.LoginUser (
   User as Variant,
   ParamType as ERUParameterType)

Parameters


User

The loginname or ID of the user.  If you specify the erParamTypeID member of the ERUParameterType enum, then the user parameter is a user ID. Otherwise, it is a loginname.

ParamType

Optional type of the User parameter. (By default, a loginname, unless you specify theerParamTypeID member of the ERUParameterType enum.)

Return value


C++

The return code.

Scripting languages

An IERUCustomContext interface pointer.

Home

Applies to

IERUApplication