jabber.connection.ItemList.this C# (CSharp) Method

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
        public XmlElement this[string id]
        {
            get
            {
                object index = m_index[id];
                if (index == null)
                    return null;
                PubSubItem item = this[(int)index] as PubSubItem;
                if (item == null)
                    return null;
                return item.Contents;
            }
            set
            {
                // wrap an item around the contents.
                PubSubItem item = new PubSubItem(value.OwnerDocument);
                item.Contents = value;
                item.ID = id;
                Add(item);
            }
        }