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

    Parameters

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

    Return Value

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