Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / CategoryRepository Class / LoadForPath Method
A textual path of category names.
The character string that delimits category names in the path.
If true, the named category path will be created if it does not already exist. If false, null is returned if the path is not present.
In This Topic
    LoadForPath Method (CategoryRepository)
    In This Topic
    Loads a category record given the named path.
    Syntax
    public Category LoadForPath( 
       string path,
       string delimiter,
       bool create
    )

    Parameters

    path
    A textual path of category names.
    delimiter
    The character string that delimits category names in the path.
    create
    If true, the named category path will be created if it does not already exist. If false, null is returned if the path is not present.

    Return Value

    The last category named in the path.
    Exceptions
    ExceptionDescription
    Thrown if path or delimiter are null or empty.
    Thrown if delimiter is not a single character.
    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