C# Class PeerCastStation.Core.AppSettingsReader

显示文件 Open project: kumaryu/peercaststation

Public Methods

Method Description
GetDate ( string key, System.DateTime default_value ) : System.DateTime
GetIPAddress ( string key, System default_value ) : System.Net.IPAddress
GetInt ( string key, int default_value ) : int
GetString ( string key, string default_value ) : string
GetUri ( string key, Uri default_value ) : Uri
TryGetDate ( string key, System.DateTime &value ) : bool
TryGetIPAddress ( string key, System &value ) : bool
TryGetInt ( string key, int &value ) : bool
TryGetString ( string key, string &value ) : bool
TryGetUri ( string key, Uri &value ) : bool

Method Details

GetDate() static public method

static public GetDate ( string key, System.DateTime default_value ) : System.DateTime
key string
default_value System.DateTime
return System.DateTime

GetIPAddress() static public method

static public GetIPAddress ( string key, System default_value ) : System.Net.IPAddress
key string
default_value System
return System.Net.IPAddress

GetInt() static public method

static public GetInt ( string key, int default_value ) : int
key string
default_value int
return int

GetString() static public method

static public GetString ( string key, string default_value ) : string
key string
default_value string
return string

GetUri() static public method

static public GetUri ( string key, Uri default_value ) : Uri
key string
default_value System.Uri
return System.Uri

TryGetDate() static public method

static public TryGetDate ( string key, System.DateTime &value ) : bool
key string
value System.DateTime
return bool

TryGetIPAddress() static public method

static public TryGetIPAddress ( string key, System &value ) : bool
key string
value System
return bool

TryGetInt() static public method

static public TryGetInt ( string key, int &value ) : bool
key string
value int
return bool

TryGetString() static public method

static public TryGetString ( string key, string &value ) : bool
key string
value string
return bool

TryGetUri() static public method

static public TryGetUri ( string key, Uri &value ) : bool
key string
value System.Uri
return bool