Method InsertSite
InsertSite(string, Site)
Inserts new site in the list of the KitchenDraw registered sites just above some other site.
Declaration
public Appli.Site InsertSite(string code, Appli.Site beforeSite)
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | The code for the new site. |
| Appli.Site | beforeSite | The new site will be inserted before this one. |
Returns
| Type | Description |
|---|---|
| Appli.Site | The new site. |
Exceptions
| Type | Condition |
|---|---|
| Sdk2Exception | If failed to insert site. |
InsertSite(string, int)
Inserts new site in the list of the KitchenDraw registered sites just above the site with given rank.
Declaration
public Appli.Site InsertSite(string code, int beforeRank)
Parameters
| Type | Name | Description |
|---|---|---|
| string | code | The code for the new site. |
| int | beforeRank | The new site will be inserted before the site with this rank. |
Returns
| Type | Description |
|---|---|
| Appli.Site | The new site. |
Exceptions
| Type | Condition |
|---|---|
| Sdk2Exception | If failed to insert site. |