C# Class BF2Statistics.ServerSettings

Afficher le fichier Open project: BF2Statistics/ControlCenter Class Usage Examples

Protected Properties

Свойство Type Description
Items string>.Dictionary

Méthodes publiques

Méthode Description
GetValue ( string Name ) : string

Method for returning the string value of a settings item

GetValue ( string Name, string DefaultValue ) : string

Method for returning the string value of a settings item

ItemCount ( ) : int

Returns the number of found settings

Save ( ) : void

Saves the current settings to the Server Settings file

ServerSettings ( string FileName ) : System

Constructor

SetValue ( string Name, string Value ) : void

Sets the value for a settings item

Method Details

GetValue() public méthode

Method for returning the string value of a settings item
Thrown if the named item doesnt exist
public GetValue ( string Name ) : string
Name string The name of the config item
Résultat string

GetValue() public méthode

Method for returning the string value of a settings item
public GetValue ( string Name, string DefaultValue ) : string
Name string The name of the config item
DefaultValue string The default value to return if the item doesnt exist
Résultat string

ItemCount() public méthode

Returns the number of found settings
public ItemCount ( ) : int
Résultat int

Save() public méthode

Saves the current settings to the Server Settings file
public Save ( ) : void
Résultat void

ServerSettings() public méthode

Constructor
public ServerSettings ( string FileName ) : System
FileName string The full path to the settings.con file
Résultat System

SetValue() public méthode

Sets the value for a settings item
public SetValue ( string Name, string Value ) : void
Name string Item Name
Value string String value of the item
Résultat void

Property Details

Items protected_oe property

A list of config items
protected Dictionary Items
Résultat string>.Dictionary