Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class
Properties Methods


In This Topic
    FileHelper Class Members
    In This Topic

    The following tables list the members exposed by FileHelper.

    Public Properties
     NameDescription
    Public Propertystatic (Shared in Visual Basic) Gets the base path on the file sytem for the current application  
    Public Propertystatic (Shared in Visual Basic) Gets the physical base path for digital goods.  
    Public Propertystatic (Shared in Visual Basic) Gets the physical base path for product images.  
    Public Propertystatic (Shared in Visual Basic) Gets the base url for product images.  
    Top
    Public Methods
     NameDescription
    Public Methodstatic (Shared in Visual Basic)Overloaded.  Tests for the ability to create (write) the specified file  
    Public Methodstatic (Shared in Visual Basic)Tests for the ability to delete the specified file. Warning: If this method succeeds the specified file is DELETED.  
    Public Methodstatic (Shared in Visual Basic) Tests for the ability to open an existing file for read access.  
    Public Methodstatic (Shared in Visual Basic) Tests for the ability to open an existing file for write access.  
    Public Methodstatic (Shared in Visual Basic) Copies the contents of the source directory to the target  
    Public Methodstatic (Shared in Visual Basic) Gets a human readble number from the file size  
    Public Methodstatic (Shared in Visual Basic)Overloaded.  Resizes a given image to the specified width and height  
    Public Methodstatic (Shared in Visual Basic)Overloaded.  Determines the best resize dimensions for an image.  
    Public Methodstatic (Shared in Visual Basic) Gets a string that is suitable for use as a base image name  
    Public Methodstatic (Shared in Visual Basic) Gets a unique file name based on the given file name. If a file with same name already exists in the given path it will add numbers to the name until a unique name is found  
    Public Methodstatic (Shared in Visual Basic) Indicates whether a filename has a valid extension  
    Public Methodstatic (Shared in Visual Basic) Tests a file to see whether it is an image.  
    Public Methodstatic (Shared in Visual Basic) Checks a file extension to see whether it is recognized as a text file.  
    Public Methodstatic (Shared in Visual Basic) Reads all data from the given file in a text string  
    Public Methodstatic (Shared in Visual Basic) Helper method to map relative paths to absolute paths  
    Public Methodstatic (Shared in Visual Basic)Overloaded.  Save or append text into a text file, saves using a default encoding as UTF-8.  
    Public Methodstatic (Shared in Visual Basic)Overloaded.  Records a textual byte-by-byte representation of the given data to the file specified  
    Public Methodstatic (Shared in Visual Basic)Overloaded.  Writes an image to the file name specified  
    Top
    Extension Methods
     NameDescription
    Public Extension MethodOverloaded.  Use this method to bulid query string from NameValueCollection
    Top
    See Also