Method RemoveInventoriesByDefinition
RemoveInventoriesByDefinition(string)
This method will remove the Inventory that uses the InventoryDefinition with the given Id.
Declaration
public static int RemoveInventoriesByDefinition(string inventoryDefinitionId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | inventoryDefinitionId | The Id of the InventoryDefinition we want to remove. |
Returns
| Type | Description |
|---|---|
| int | The amount of inventories that were removed. |
RemoveInventoriesByDefinition(int)
This method will remove the Inventory that uses the InventoryDefinition with the given Hash.
Declaration
public static int RemoveInventoriesByDefinition(int inventoryDefinitionHash)
Parameters
| Type | Name | Description |
|---|---|---|
| int | inventoryDefinitionHash | The Hash of the InventoryDefinition we want to remove. |
Returns
| Type | Description |
|---|---|
| int | The amount of inventories that were removed. |
RemoveInventoriesByDefinition(InventoryDefinition)
This method will remove the Inventory that uses the given InventoryDefinition.
Declaration
public static int RemoveInventoriesByDefinition(InventoryDefinition inventoryDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| InventoryDefinition | inventoryDefinition | The InventoryDefinition we want to remove. |
Returns
| Type | Description |
|---|---|
| int | The amount of inventories that were removed. |