dup_item


Description:

[ Version ( since = "3.58" ) ]
public ComponentBagItem? dup_item (Client client, string uid, string? rid)

Looks up for an item identified by the client, uid and optionally rid, and returns a copy of it.

Free the returned item with free, when no longer needed

This is a thread safe variant of the get_item.

Parameters:

this

an ComponentBag

client

an Client

uid

a component UID

rid

a component recurrence ID, or null

Returns:

an ComponentBagItem copy of a stored item, or null when not found