C# Класс Pdelvo.Minecraft.Proxy.Library.Configuration.ServerCollection

The collection of minecraft backend servers
Наследование: System.Configuration.ConfigurationElementCollection
Показать файл Открыть проект

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

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

Защищенные методы

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

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

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

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

BaseAdd() защищенный Метод

protected BaseAdd ( ConfigurationElement element ) : void
element System.Configuration.ConfigurationElement
Результат void

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

Removes all items from the collection
public Clear ( ) : void
Результат void

CreateNewElement() защищенный Метод

Creates a new empty ServerElement (same as using the default constructor)
protected CreateNewElement ( ) : ConfigurationElement
Результат System.Configuration.ConfigurationElement

CreateNewElement() защищенный Метод

protected CreateNewElement ( string elementName ) : ConfigurationElement
elementName string
Результат System.Configuration.ConfigurationElement

GetElementKey() защищенный Метод

Get the key = the name of a item
protected GetElementKey ( ConfigurationElement element ) : Object
element System.Configuration.ConfigurationElement
Результат Object

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

Returns the position of the specific ServerElement
public IndexOf ( ServerElement element ) : int
element ServerElement The element whish should be looked up
Результат int

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

Remove a element from the collection
public Remove ( ServerElement element ) : void
element ServerElement The element which should be removed
Результат void

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

Remove a item with the specific name
public Remove ( string name ) : void
name string The name of the item
Результат void

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

Remove a element at the specific position
public RemoveAt ( int index ) : void
index int The position of the item
Результат void

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

Returns the ServerElement at the specific position
public this ( int index ) : ServerElement
index int The position of the ServerElement in this collection
Результат ServerElement

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

Returns the ServerElement with the specific name
public this ( string name ) : ServerElement
name string The name of the ServerElement
Результат ServerElement