C# Class jabber.connection.ItemList

Inheritance: System.Collections.ArrayList
Datei anzeigen Open project: codebutler/jabber-net Class Usage Examples

Public Methods

Method Description
Add ( object value ) : int

Adds to the end of the list, replacing any item with the same ID, or bumping the oldest item if the list is full.

ItemList ( PubSubNode node, int maxItems ) : System

Creates an item list, which will have at most some number of items.

RemoveAt ( int index ) : void

Makes sure that the underlying ID index is in sync when an item is removed.

RemoveId ( string id ) : void

Removes the item with the given ID. No exception is thrown if no item is found with that ID.

this ( string id ) : XmlElement

Gets or sets the contents of the specified item.

Method Details

Add() public method

Adds to the end of the list, replacing any item with the same ID, or bumping the oldest item if the list is full.
public Add ( object value ) : int
value object PubSubItem to add to the list.
return int

ItemList() public method

Creates an item list, which will have at most some number of items.
public ItemList ( PubSubNode node, int maxItems ) : System
node PubSubNode The node to which this item list applies.
maxItems int Maximum size of the list. Delete notifications will be sent if this size is exceeded.
return System

RemoveAt() public method

Makes sure that the underlying ID index is in sync when an item is removed.
public RemoveAt ( int index ) : void
index int Index of PubSubItem to remove.
return void

RemoveId() public method

Removes the item with the given ID. No exception is thrown if no item is found with that ID.
public RemoveId ( string id ) : void
id string ID of the item to remove
return void

this() public method

Gets or sets the contents of the specified item.
public this ( string id ) : XmlElement
id string Id of the PubSubItem.
return System.Xml.XmlElement