CreateCustomRole method

Creates a new empty (i.e. memberless) Custom Role for the given eRoom.

Syntax


C++

HRESULT CreateCustomRole (
   BSTR Name,

   BSTR Description,

   ERUMemberRole MemberRole,

   IERUCustomRole** ppRetVal)

Scripting languages

Set CustomRole = Object.CreateCustomRole (
   Name as String

   Description as String

   MemberRole as ERUMemberRole)

Parameters


Name

The name of the custom role. Must not exceed 126 characters in length.

Description

A description of the custom role. Must not exceed 32K characters in length.

MemberRole

The ERUMemberRole role (i.e. access level) associated with the Custom Role. Note that erRoleNone is not a valid choice.

Return value


C++

The return code.

Scripting languages:

An IERUCustomRole interface pointer associated with the given eRoom.

Home

Applies to

IERURoom



See also

IERUCustomRole