jabber.connection.ConferenceManager.RemoveRoom C# (CSharp) Method

RemoveRoom() public method

Removes the room from the list. Should most often be called by the Room.Leave() method. If the room does not exist, no exception is thrown.
public RemoveRoom ( JID roomAndNick ) : void
roomAndNick JID Room to remove.
return void
        public void RemoveRoom(JID roomAndNick)
        {
            m_rooms.Remove(roomAndNick);
        }

Usage Example

        public void RemoveRoomTest()
        {
            cm = new ConferenceManager();
            cm.Stream = stream;

            cm.GetRoom(jid);
            bool roomExists = cm.HasRoom(jid);
            Assert.IsTrue(roomExists);

            cm.RemoveRoom(jid);
            roomExists = cm.HasRoom(jid);
            Assert.IsFalse(roomExists);
        }