Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / User Class / IsInRole Method / IsInRole(String) Method
The name of the role to check.
Version
IsInRole(String) Method
Determines whether a user is in the given role.
Syntax
public virtual bool IsInRole( 
   string name
)

Parameters

name
The name of the role to check.

Return Value

True if the user is in the given role; false otherwise.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also