Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / Group Class / IsInRole Method / IsInRole(ICollection<String>) Method
A collection of role names to check.
In This Topic
    IsInRole(ICollection<String>) Method
    In This Topic
    Determines whether this group has any of the given roles.
    Syntax
    public virtual bool IsInRole( 
       ICollection<string> roleNames
    )

    Parameters

    roleNames
    A collection of role names to check.

    Return Value

    True if the group has any of the given roles; 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