C# Class jabber.connection.ItemList

Inheritance: System.Collections.ArrayList
Afficher le fichier Open project: codebutler/jabber-net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat int

ItemList() public méthode

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.
Résultat System

RemoveAt() public méthode

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.
Résultat void

RemoveId() public méthode

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
Résultat void

this() public méthode

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