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

The collection of minecraft backend servers
Inheritance: System.Configuration.ConfigurationElementCollection
Afficher le fichier Open project: pdelvo/Pdelvo.Minecraft.Proxy

Méthodes publiques

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

Méthodes protégées

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

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

BaseAdd() protected méthode

protected BaseAdd ( ConfigurationElement element ) : void
element System.Configuration.ConfigurationElement
Résultat void

Clear() public méthode

Removes all items from the collection
public Clear ( ) : void
Résultat void

CreateNewElement() protected méthode

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

CreateNewElement() protected méthode

protected CreateNewElement ( string elementName ) : ConfigurationElement
elementName string
Résultat System.Configuration.ConfigurationElement

GetElementKey() protected méthode

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

IndexOf() public méthode

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

Remove() public méthode

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

Remove() public méthode

Remove a item with the specific name
public Remove ( string name ) : void
name string The name of the item
Résultat void

RemoveAt() public méthode

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

this() public méthode

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

this() public méthode

Returns the ServerElement with the specific name
public this ( string name ) : ServerElement
name string The name of the ServerElement
Résultat ServerElement