C# 클래스 Pdelvo.Minecraft.Proxy.Library.Configuration.ServerCollection

The collection of minecraft backend servers
상속: System.Configuration.ConfigurationElementCollection
파일 보기 프로젝트 열기: pdelvo/Pdelvo.Minecraft.Proxy

공개 메소드들

메소드 설명
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