C# Class Pdelvo.Minecraft.Proxy.Library.Configuration.ServerCollection

The collection of minecraft backend servers
Inheritance: System.Configuration.ConfigurationElementCollection
ファイルを表示 Open project: pdelvo/Pdelvo.Minecraft.Proxy

Public Methods

Method Description
Add ( ServerElement element ) : void

Add a new element to the collection. If there is already a element with the same name in the collection it will be overridden

Clear ( ) : void

Removes all items from the collection

IndexOf ( ServerElement element ) : int

Returns the position of the specific ServerElement

Remove ( ServerElement element ) : void

Remove a element from the collection

Remove ( string name ) : void

Remove a item with the specific name

RemoveAt ( int index ) : void

Remove a element at the specific position

this ( int index ) : ServerElement

Returns the ServerElement at the specific position

this ( string name ) : ServerElement

Returns the ServerElement with the specific name

Protected Methods

Method Description
BaseAdd ( ConfigurationElement element ) : void
CreateNewElement ( ) : ConfigurationElement

Creates a new empty ServerElement (same as using the default constructor)

CreateNewElement ( string elementName ) : ConfigurationElement
GetElementKey ( ConfigurationElement element ) : Object

Get the key = the name of a item

Method Details

Add() public method

Add a new element to the collection. If there is already a element with the same name in the collection it will be overridden
public Add ( ServerElement element ) : void
element ServerElement
return void

BaseAdd() protected method

protected BaseAdd ( ConfigurationElement element ) : void
element System.Configuration.ConfigurationElement
return void

Clear() public method

Removes all items from the collection
public Clear ( ) : void
return void

CreateNewElement() protected method

Creates a new empty ServerElement (same as using the default constructor)
protected CreateNewElement ( ) : ConfigurationElement
return System.Configuration.ConfigurationElement

CreateNewElement() protected method

protected CreateNewElement ( string elementName ) : ConfigurationElement
elementName string
return System.Configuration.ConfigurationElement

GetElementKey() protected method

Get the key = the name of a item
protected GetElementKey ( ConfigurationElement element ) : Object
element System.Configuration.ConfigurationElement
return Object

IndexOf() public method

Returns the position of the specific ServerElement
public IndexOf ( ServerElement element ) : int
element ServerElement The element whish should be looked up
return int

Remove() public method

Remove a element from the collection
public Remove ( ServerElement element ) : void
element ServerElement The element which should be removed
return void

Remove() public method

Remove a item with the specific name
public Remove ( string name ) : void
name string The name of the item
return void

RemoveAt() public method

Remove a element at the specific position
public RemoveAt ( int index ) : void
index int The position of the item
return void

this() public method

Returns the ServerElement at the specific position
public this ( int index ) : ServerElement
index int The position of the ServerElement in this collection
return ServerElement

this() public method

Returns the ServerElement with the specific name
public this ( string name ) : ServerElement
name string The name of the ServerElement
return ServerElement