C# Class FiftyOne.Foundation.Mobile.Configuration.LocationElement

Contains information for all location specified in the web.config file.
Inheritance: System.Configuration.ConfigurationElementCollection
ファイルを表示 Open project: 51Degrees/dotNET-Device-Detection Class Usage Examples

Private Properties

Property Type Description
Add void

Protected Methods

Method Description
CreateNewElement ( ) : ConfigurationElement

Creates a new instance of FilterElement.

GetElementKey ( ConfigurationElement element ) : object

Get the element key. Check for empty strings and return null to avoid a problem with the defaultvalue property of the key element becoming an empty string and causing a duplicate key exception within .NET.

Private Methods

Method Description
Add ( FilterElement element ) : void

Adds a new filter to the location collection.

Method Details

CreateNewElement() protected method

Creates a new instance of FilterElement.
protected CreateNewElement ( ) : ConfigurationElement
return System.Configuration.ConfigurationElement

GetElementKey() protected method

Get the element key. Check for empty strings and return null to avoid a problem with the defaultvalue property of the key element becoming an empty string and causing a duplicate key exception within .NET.
protected GetElementKey ( ConfigurationElement element ) : object
element System.Configuration.ConfigurationElement
return object