C# Класс jabber.connection.ItemList

Наследование: System.Collections.ArrayList
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

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.
Результат int

ItemList() публичный Метод

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.
Результат System

RemoveAt() публичный Метод

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.
Результат void

RemoveId() публичный Метод

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
Результат void

this() публичный Метод

Gets or sets the contents of the specified item.
public this ( string id ) : XmlElement
id string Id of the PubSubItem.
Результат System.Xml.XmlElement