SetAccess method

Assigns the open and edit access permissions for an object simultaneously.

Syntax


C++
HRESULT SetAccess(
   ERUAccessScope OpenScope,
   IERUMemberSet* pOpenList,
   ERUAccessScope EditScope,
   IERUMemberSet* pEditList)
Scripting languages
Object.SetAccess
   OpenScope as ERUAccessScope,
   pOpenList as ERUMemberSet,
   EditScope as ERUAccessMode
   pEditList as ERUMemberSet

Parameters


OpenScope

Specifies the Access Scope for the "who can open" list.

For further information, see ERUAccessScope.

pOpenList

If OpenScope is erScopeList, this parameter specifies the set of members to be given open access. Otherwise, this parameter is ignored

EditScope

Specifies the Access Scope for the "who can edit" list.

For further information, see ERUAccessScope.

pEditList

If EditScope is erScopeList, this parameter specifies the set of members to be given edit access. Otherwise, this parameter is ignored

Return value


C++

The return code.

Scripting languages

None.

Home

Applies to

IERUAccessControl