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

    Parameters

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

    Return Value

    If found or created, returns the manufacturer instance. Otherwise returns null.
    Remarks
    If more than one matching manufacturer 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