Method GetTags
GetTags()
Returns an array of all the Tag instances linked to this CatalogItem instance. catalog.
Declaration
public Tag[] GetTags()
Returns
| Type | Description |
|---|---|
| Tag[] | An array of all the tags linked to this CatalogItem instance. |
Remarks
Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetTags(ICollection<Tag>) instead.
GetTags(ICollection<Tag>)
Fills the given target collection with all the
Tag instances linked to this
CatalogItem instance.
The target collection is cleared before being
populated.
Declaration
public int GetTags(ICollection<Tag> target)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<Tag> | target | The target container of all the Tag instances. |
Returns
| Type | Description |
|---|---|
| int | The number of Tag instances linked to this CatalogItem instance. |