Method FindItemsByTag
FindItemsByTag(TagAsset, ICollection<TItemAsset>)
Fills in the given target
collection with all
TItemAsset
instances of this catalog matching the
given tag
and returns their count.
The target
collection is cleared before being
populated.
Declaration
public int FindItemsByTag(TagAsset tag, ICollection<TItemAsset> target = null)
Parameters
Type | Name | Description |
---|---|---|
Tag |
tag | The Tag instance used as a filter |
ICollection<TItemAsset> | target | The target container of all the matching
|
Returns
Type | Description |
---|---|
int | The number of |
FindItemsByTag(string, ICollection<TItemAsset>)
Fills in the given target
collection with all
TItemAsset
instances of this catalog matching
the Tagkey
and
returns their count.
The target
collection is cleared before being
populated.
Declaration
public int FindItemsByTag(string key, ICollection<TItemAsset> target = null)
Parameters
Type | Name | Description |
---|---|---|
string | key | The identifier of the Tag |
ICollection<TItemAsset> | target | The target container of all the matching
|
Returns
Type | Description |
---|---|
int | The number of |
FindItemsByTag<TInheritedItemAsset>(TagAsset, ICollection<TItemAsset>)
Fills in the given target
collection with all
TInheritedItemAsset
instances of this catalog
matching the given tag
and returns their
count.
The target
collection is cleared before being
populated.
Declaration
public int FindItemsByTag<TInheritedItemAsset>(TagAsset tag, ICollection<TItemAsset> target = null) where TInheritedItemAsset : TItemAsset
Parameters
Type | Name | Description |
---|---|---|
Tag |
tag | The Tag |
ICollection<TItemAsset> | target | The target container of all the matching
|
Returns
Type | Description |
---|---|
int | The number of |
Type Parameters
Name | Description |
---|---|
TInheritedItemAsset |
FindItemsByTag<TInheritedItemAsset>(TagAsset)
Returns an array of all the
TInheritedItemAsset
instances of this catalog
matching the given tag
Declaration
public TItemAsset[] FindItemsByTag<TInheritedItemAsset>(TagAsset tag) where TInheritedItemAsset : TItemAsset
Parameters
Returns
Type | Description |
---|---|
TItemAsset[] | The number of |
Type Parameters
Name | Description |
---|---|
TInheritedItemAsset |
FindItemsByTag<TInheritedItemAsset>(string, ICollection<TItemAsset>)
Fills in the given target
collection with all
TInheritedItemAsset
instances of this catalog
matching the tag
by its
key
and returns their count.
The target
collection is cleared before being
populated.
Declaration
public int FindItemsByTag<TInheritedItemAsset>(string key, ICollection<TItemAsset> target = null) where TInheritedItemAsset : TItemAsset
Parameters
Type | Name | Description |
---|---|---|
string | key | |
ICollection<TItemAsset> | target | The target container of all the matching
|
Returns
Type | Description |
---|---|
int | The number of |
Type Parameters
Name | Description |
---|---|
TInheritedItemAsset |
FindItemsByTag<TInheritedItemAsset>(string)
Returns an array of all the
TInheritedItemAsset
instances of this catalog
matching the Tagkey
Declaration
public TItemAsset[] FindItemsByTag<TInheritedItemAsset>(string key) where TInheritedItemAsset : TItemAsset
Parameters
Returns
Type | Description |
---|---|
TItemAsset[] | The number of |
Type Parameters
Name | Description |
---|---|
TInheritedItemAsset |
FindItemsByTag(TagAsset)
Returns an array of all the
TItemAsset
instances of this catalog
matching the given tag
Declaration
public TItemAsset[] FindItemsByTag(TagAsset tag)
Parameters
Type | Name | Description |
---|---|---|
Tag |
tag |
Returns
Type | Description |
---|---|
TItemAsset[] | The number of |
FindItemsByTag(string)
Returns an array of all the
TItemAsset
instances of this catalog
matching the Tagkey
Declaration
public TItemAsset[] FindItemsByTag(string key)
Parameters
Returns
Type | Description |
---|---|
TItemAsset[] | The number of |