Method GetStoreItemsByCategory
GetStoreItemsByCategory(Category, ICollection<BaseTransaction>)
Adds all Base
Declaration
public int GetStoreItemsByCategory(Category category, ICollection<BaseTransaction> target)
Parameters
Type | Name | Description |
---|---|---|
Category | category | Desired Category to be queried by this method. |
ICollection<Base |
target | Collection to place resultant Base |
Returns
Type | Description |
---|---|
int | The number of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if category or target is null. |
GetStoreItemsByCategory(Category)
Returns an array of the Base
Declaration
public BaseTransaction[] GetStoreItemsByCategory(Category category)
Parameters
Returns
Type | Description |
---|---|
Base |
An array of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if Category is null. |
GetStoreItemsByCategory(string)
Returns an array of the Base
Declaration
public BaseTransaction[] GetStoreItemsByCategory(string id)
Parameters
Returns
Type | Description |
---|---|
Base |
An array of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if the catalog id is null or empty or not found in this Store. |
GetStoreItemsByCategory(ICollection<Category>, ICollection<BaseTransaction>)
Updates Collection of all Base
Declaration
public int GetStoreItemsByCategory(ICollection<Category> categories, ICollection<BaseTransaction> target)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Category> | categories | Collection of desired Category to be added to the output Collection. |
ICollection<Base |
target | Collection to place resultant Base |
Returns
Type | Description |
---|---|
int | The number of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if categories or target is null. |
Argument |
Throws if any Category in categories Collection is null. |
GetStoreItemsByCategory(ICollection<Category>)
Returns an array of all Base
Declaration
public BaseTransaction[] GetStoreItemsByCategory(ICollection<Category> categories)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Category> | categories |
Returns
Type | Description |
---|---|
Base |
An array of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if categories is null. |
Argument |
Throws if any Category in categories Collection is null. |
GetStoreItemsByCategory(ICollection<string>, ICollection<BaseTransaction>)
Adds all Base
Declaration
public int GetStoreItemsByCategory(ICollection<string> categoryIds, ICollection<BaseTransaction> target)
Parameters
Type | Name | Description |
---|---|---|
ICollection<string> | categoryIds | Collection of desired Category id strings to be added to the target Collection. |
ICollection<Base |
target | Collection to place resultant Base |
Returns
Type | Description |
---|---|
int | The number of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if either categoryIds or target parameter is null. |
Argument |
Throws if any of the catalog ids are null or empty or not found in this Store. |
GetStoreItemsByCategory(ICollection<string>)
Returns an array of all Base
Declaration
public BaseTransaction[] GetStoreItemsByCategory(ICollection<string> categoryIds)
Parameters
Type | Name | Description |
---|---|---|
ICollection<string> | categoryIds | Collection of desired Category id strings to be added to the output array. |
Returns
Type | Description |
---|---|
Base |
An array of Base |
Exceptions
Type | Condition |
---|---|
Argument |
Throws if Category ids Collection is null. |
Argument |
Throws if any of the catalog ids are null or empty or not found in this Store. |