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