Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Shipping Namespace / IShipGroupRepository Interface / LoadForName Method
The name of the Ship Group to load.
Specifies whether or not to create the Ship Group if it does not exist.
In This Topic
    LoadForName Method (IShipGroupRepository)
    In This Topic
    Loads a ShipGroup given the name.
    Syntax
    ShipGroup LoadForName( 
       string name,
       bool create
    )

    Parameters

    name
    The name of the Ship Group to load.
    create
    Specifies whether or not to create the Ship Group if it does not exist.

    Return Value

    If found or created, returns the Ship Group instance. Otherwise returns null.
    Remarks
    If more than one matching ShipGroup is found, only the first match is returned.
    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