Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / IsImageFile Method
The full physical path to the file to test.
In This Topic
    IsImageFile Method
    In This Topic
    Tests a file to see whether it is an image.
    Syntax
    public static bool IsImageFile( 
       string path
    )

    Parameters

    path
    The full physical path to the file to test.

    Return Value

    True if the file is recognized as an image, 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