Cronous Emulation Server Daemon

ItemManager.Item Property

Gets or sets an item by its ID.

[C#] In C#, this property is the indexer for the ItemManager class.

[Visual Basic]
Public Default Property Item( _ 
   ByVal id As Integer _ 
) As ItemInstance
[C#]
public ItemInstance this[
   int id
] { get; set; }
[C++]
public: __property ItemInstance* get_Item(
   int id
);
public: __property void set_Item(
   int id,
   ItemInstance* newValue
);
[JScript]
returnValue = ItemManagerObject.Item( id );
ItemManagerObject.Item( id ) = newValue;
-or-
returnValue = ItemManagerObject( id );
ItemManagerObject( id ) = newValue;

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

See Also

ItemManager Class | croemud.manager Namespace