Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / User Class / IsInRole Method / IsInRole(Int32) Method
The unique ID of the role to check.
In This Topic
    IsInRole(Int32) Method
    In This Topic
    Determines whether a user is in the given role.
    Syntax
    public virtual bool IsInRole( 
       int roleId
    )

    Parameters

    roleId
    The unique ID 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