C# Class Argentini.Halide.H3Config

]]>
Show file Open project: argentini/Halide

Public Methods

Method Description
ConnectionString ( String connectionStringName ) : String

Return a SQL connection string by name, from the Web.config file.

GetKeyAsBoolean ( String keyName, System.Boolean defaultValue ) : System.Boolean

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsBoolean ( String keyName, System.Boolean defaultValue, String sectionName ) : System.Boolean

Retrieve the value of an application setting from the Web.config file.

GetKeyAsBoolean ( String keyName, String defaultValue ) : System.Boolean

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsBoolean ( String keyName, String defaultValue, String sectionName ) : System.Boolean

Retrieve the value of an application setting from the Web.config file.

GetKeyAsBoolean ( String keyName ) : Boolean?

Retrieve the value of an application setting from the Web.config file.

GetKeyAsDateTime ( String keyName, System.DateTime defaultValue ) : System.DateTime

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsDateTime ( String keyName, System.DateTime defaultValue, String sectionName ) : System.DateTime

Retrieve the value of an application setting from the Web.config file.

GetKeyAsDateTime ( String keyName, String defaultValue ) : System.DateTime

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsDateTime ( String keyName, String defaultValue, String sectionName ) : System.DateTime

Retrieve the value of an application setting from the Web.config file.

GetKeyAsDateTime ( String keyName ) : DateTime?

Retrieve the value of an application setting from the Web.config file.

GetKeyAsDouble ( String keyName, Double defaultValue ) : Double

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsDouble ( String keyName, Double defaultValue, String sectionName ) : Double

Retrieve the value of an application setting from the Web.config file.

GetKeyAsDouble ( String keyName, String defaultValue ) : Double

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsDouble ( String keyName, String defaultValue, String sectionName ) : Double

Retrieve the value of an application setting from the Web.config file.

GetKeyAsDouble ( String keyName ) : Double?

Retrieve the value of an application setting from the Web.config file.

GetKeyAsInt32 ( String keyName, Int32 defaultValue ) : Int32

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsInt32 ( String keyName, Int32 defaultValue, String sectionName ) : Int32

Retrieve the value of an application setting from the Web.config file.

GetKeyAsInt32 ( String keyName, String defaultValue ) : Int32

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsInt32 ( String keyName, String defaultValue, String sectionName ) : Int32

Retrieve the value of an application setting from the Web.config file.

GetKeyAsInt32 ( String keyName ) : Int32?

Retrieve the value of an application setting from the Web.config file.

GetKeyAsInt64 ( String keyName, System.Int64 defaultValue ) : System.Int64

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsInt64 ( String keyName, System.Int64 defaultValue, String sectionName ) : System.Int64

Retrieve the value of an application setting from the Web.config file.

GetKeyAsInt64 ( String keyName, String defaultValue ) : System.Int64

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsInt64 ( String keyName, String defaultValue, String sectionName ) : System.Int64

Retrieve the value of an application setting from the Web.config file.

GetKeyAsInt64 ( String keyName ) : Int64?

Retrieve the value of an application setting from the Web.config file.

GetKeyAsSingle ( String keyName, System.Single defaultValue ) : System.Single

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsSingle ( String keyName, System.Single defaultValue, String sectionName ) : System.Single

Retrieve the value of an application setting from the Web.config file.

GetKeyAsSingle ( String keyName, String defaultValue ) : System.Single

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsSingle ( String keyName, String defaultValue, String sectionName ) : System.Single

Retrieve the value of an application setting from the Web.config file.

GetKeyAsSingle ( String keyName ) : Single?

Retrieve the value of an application setting from the Web.config file.

GetKeyAsString ( String keyName ) : String

Retrieve the value of an application setting from the Web.config file.

GetKeyAsString ( String keyName, String defaultValue ) : String

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.

GetKeyAsString ( String keyName, String defaultValue, String sectionName ) : String

Retrieve the value of an application setting from the Web.config file.

Private Methods

Method Description
H3Config ( ) : System

Method Details

ConnectionString() public static method

Return a SQL connection string by name, from the Web.config file.
public static ConnectionString ( String connectionStringName ) : String
connectionStringName String Name of a connection string within the Web.config file.
return String

GetKeyAsBoolean() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsBoolean ( String keyName, System.Boolean defaultValue ) : System.Boolean
keyName String Key name for which a value should be returned.
defaultValue System.Boolean Default value to use if the key is not found.
return System.Boolean

GetKeyAsBoolean() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsBoolean ( String keyName, System.Boolean defaultValue, String sectionName ) : System.Boolean
keyName String Key name for which a value should be returned.
defaultValue System.Boolean Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Boolean

GetKeyAsBoolean() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsBoolean ( String keyName, String defaultValue ) : System.Boolean
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return System.Boolean

GetKeyAsBoolean() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsBoolean ( String keyName, String defaultValue, String sectionName ) : System.Boolean
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Boolean

GetKeyAsBoolean() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsBoolean ( String keyName ) : Boolean?
keyName String Key name for which a value should be returned.
return Boolean?

GetKeyAsDateTime() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsDateTime ( String keyName, System.DateTime defaultValue ) : System.DateTime
keyName String Key name for which a value should be returned.
defaultValue System.DateTime Default value to use if the key is not found.
return System.DateTime

GetKeyAsDateTime() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsDateTime ( String keyName, System.DateTime defaultValue, String sectionName ) : System.DateTime
keyName String Key name for which a value should be returned.
defaultValue System.DateTime Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.DateTime

GetKeyAsDateTime() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsDateTime ( String keyName, String defaultValue ) : System.DateTime
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return System.DateTime

GetKeyAsDateTime() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsDateTime ( String keyName, String defaultValue, String sectionName ) : System.DateTime
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.DateTime

GetKeyAsDateTime() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsDateTime ( String keyName ) : DateTime?
keyName String Key name for which a value should be returned.
return DateTime?

GetKeyAsDouble() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsDouble ( String keyName, Double defaultValue ) : Double
keyName String Key name for which a value should be returned.
defaultValue Double Default value to use if the key is not found.
return Double

GetKeyAsDouble() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsDouble ( String keyName, Double defaultValue, String sectionName ) : Double
keyName String Key name for which a value should be returned.
defaultValue Double Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return Double

GetKeyAsDouble() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsDouble ( String keyName, String defaultValue ) : Double
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return Double

GetKeyAsDouble() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsDouble ( String keyName, String defaultValue, String sectionName ) : Double
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return Double

GetKeyAsDouble() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsDouble ( String keyName ) : Double?
keyName String Key name for which a value should be returned.
return Double?

GetKeyAsInt32() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsInt32 ( String keyName, Int32 defaultValue ) : Int32
keyName String Key name for which a value should be returned.
defaultValue System.Int32 Default value to use if the key is not found.
return System.Int32

GetKeyAsInt32() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt32 ( String keyName, Int32 defaultValue, String sectionName ) : Int32
keyName String Key name for which a value should be returned.
defaultValue System.Int32 Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Int32

GetKeyAsInt32() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsInt32 ( String keyName, String defaultValue ) : Int32
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return System.Int32

GetKeyAsInt32() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt32 ( String keyName, String defaultValue, String sectionName ) : Int32
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Int32

GetKeyAsInt32() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt32 ( String keyName ) : Int32?
keyName String Key name for which a value should be returned.
return Int32?

GetKeyAsInt64() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsInt64 ( String keyName, System.Int64 defaultValue ) : System.Int64
keyName String Key name for which a value should be returned.
defaultValue System.Int64 Default value to use if the key is not found.
return System.Int64

GetKeyAsInt64() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt64 ( String keyName, System.Int64 defaultValue, String sectionName ) : System.Int64
keyName String Key name for which a value should be returned.
defaultValue System.Int64 Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Int64

GetKeyAsInt64() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsInt64 ( String keyName, String defaultValue ) : System.Int64
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return System.Int64

GetKeyAsInt64() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt64 ( String keyName, String defaultValue, String sectionName ) : System.Int64
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Int64

GetKeyAsInt64() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsInt64 ( String keyName ) : Int64?
keyName String Key name for which a value should be returned.
return Int64?

GetKeyAsSingle() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsSingle ( String keyName, System.Single defaultValue ) : System.Single
keyName String Key name for which a value should be returned.
defaultValue System.Single Default value to use if the key is not found.
return System.Single

GetKeyAsSingle() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsSingle ( String keyName, System.Single defaultValue, String sectionName ) : System.Single
keyName String Key name for which a value should be returned.
defaultValue System.Single Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Single

GetKeyAsSingle() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsSingle ( String keyName, String defaultValue ) : System.Single
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return System.Single

GetKeyAsSingle() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsSingle ( String keyName, String defaultValue, String sectionName ) : System.Single
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return System.Single

GetKeyAsSingle() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsSingle ( String keyName ) : Single?
keyName String Key name for which a value should be returned.
return Single?

GetKeyAsString() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsString ( String keyName ) : String
keyName String Key name for which a value should be returned.
return String

GetKeyAsString() public static method

Retrieve the value of an application setting from the Web.config file. Returns the default value if the key is not found.
public static GetKeyAsString ( String keyName, String defaultValue ) : String
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
return String

GetKeyAsString() public static method

Retrieve the value of an application setting from the Web.config file.
public static GetKeyAsString ( String keyName, String defaultValue, String sectionName ) : String
keyName String Key name for which a value should be returned.
defaultValue String Default value to use if the key is not found.
sectionName String Section name within the Web.config file.
return String