Partager via


IsUserInRole Method

IsUserInRole Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The method checks if a user is in a folder role.

Applies To

IWorkflowSession Interface

Type Library

Microsoft CDO Workflow Objects for Microsoft Exchange

DLL Implemented In

CDOWF.DLL

Syntax

[Visual Basic]Function IsUserInRole
(
    bsUser As String,     bsRole As String
) As Boolean

[C++]HRESULT IsUserInRole (     BSTR bsUser,     BSTR bsRole,     VARIANT_BOOLbIsMember );

Parameters

  • bsUser
    The user principal name (UPN).
  • bsRole
    The name of the role. There are sixteen valid fixed strings for your use. Valid strings include "Role1", "Role2", ... , "Role16".
  • bIsMember
    Returns whether a user is in a folder role or not.

Return Value

Returns S_OK if successful, or an error value otherwise.

Example

WorkflowSession.IsUserInRole ("someone@example.com", "Role9")

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.