KitchenDraw SDK 2
Show / Hide Table of Contents

Method TryGetSupplierOfCurrentSiteFromCatalogFilename

TryGetSupplierOfCurrentSiteFromCatalogFilename(string, out Supplier)

Finds a supplier to which the given catalog is attached in the list of the suppliers registered in the KitchenDraw software for the site to which the current user belongs.

Declaration
public bool TryGetSupplierOfCurrentSiteFromCatalogFilename(string catalogFilename, out Appli.Supplier matchingSupplier)
Parameters
Type Name Description
string catalogFilename

Filename of a catalog to find (without a path or extension).

Appli.Supplier matchingSupplier

When the method completes, this parameter holds first matching supplier, or null if no supplier had a match.

Returns
Type Description
bool

true if a supplier was found, false otherwise.

Remarks

The supplier is searched in the list of registered suppliers for the site to which the current user belongs. If the catalog is assigned to multiple suppliers (which should not be the case), then the first supplier encountered in the list whose rank will be returned.

In this article
Back to top Generated by DocFX