Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / ValidationHelper Class / ValidateParameter Method
parameter to validate
If true parameter is checked for null
If true parameter is checked for emptiness
If true parameter is checked for commas
The maximum size of the parameter
In This Topic
    ValidateParameter Method
    In This Topic
    Validates a given parameter
    Syntax
    public static bool ValidateParameter( 
       ref string param,
       bool checkForNull,
       bool checkIfEmpty,
       bool checkForCommas,
       int maxSize
    )

    Parameters

    param
    parameter to validate
    checkForNull
    If true parameter is checked for null
    checkIfEmpty
    If true parameter is checked for emptiness
    checkForCommas
    If true parameter is checked for commas
    maxSize
    The maximum size of the parameter

    Return Value

    true if parameter is validated, 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