Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / StringHelper Class / ApplyFilter Method
input string to filter
characters to allow
In This Topic
    ApplyFilter Method
    In This Topic
    allows only the specified characters to be returned
    Syntax
    public static string ApplyFilter( 
       string text,
       char[] allowedChars
    )

    Parameters

    text
    input string to filter
    allowedChars
    characters to allow

    Return Value

    String that contains only the specified characters
    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