Method HasCategory
HasCategory(Category)
Tells whether or not the given category
is within
this CatalogItem instance.
Declaration
public bool HasCategory(Category category)
Parameters
Type | Name | Description |
---|---|---|
Category | category | The Category instance. to search for. |
Returns
Type | Description |
---|---|
bool | Whether or not this CatalogItem instance has the specified Category included. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If the
|
HasCategory(string)
Tells whether or not a Category instance with the
given id
is within this CatalogItem
instance.
Declaration
public bool HasCategory(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The identifier of a Category instance. |
Returns
Type | Description |
---|---|
bool | Whether or not this CatalogItem instance has
a Category with the given |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | If the
|