Class ValueList
- Namespace
- SWConfigDataClientLib.Proxies
- Assembly
- IpPbxCDSClientLib.dll
Named list of ValueItems
[DefaultMember("Item")]
public class ValueList : DictionaryBase
- Inheritance
-
ValueList
Constructors
ValueList()
standard contructor
public ValueList()
Properties
HasEmpty
Returns true if the ValueList contains an empty element.
public bool HasEmpty { get; set; }
Property Value
this[int]
Gets the ValueItem at index
public ValueItem this[int index] { get; }
Parameters
index
intPosition of value in list.
Property Value
- ValueItem
ValueItem at given position.
Values
Gets all values(ValueLists)
public SimpleValueList Values { get; }
Property Value
Methods
Add(ValueItem)
Adds new value to list
public void Add(ValueItem item)
Parameters
item
ValueItem
Add(object)
Adds new value to list
public void Add(object key)
Parameters
key
objectkey and text of value
Add(object, string, string)
Adds new value to list
public void Add(object key, string text, string description)
Parameters
GetName()
retrieves the name of the ValueList
public string GetName()
Returns
- string
Name of the ValueList
OnClear()
protected override void OnClear()
OnRemoveComplete(object, object)
protected override void OnRemoveComplete(object key, object value)
Parameters
getDescription(object)
Returns the description of a valueItems in the list. If the value is not in value the method returns an emoty string.
public string getDescription(object key)
Parameters
key
objectkey of value
Returns
getDescriptionByID(int)
Returns the description of a valueItems in the list. If the value is not in value the method returns an emoty string.
public string getDescriptionByID(int iKey)
Parameters
iKey
int
Returns
getItem(int, int)
public ValueItem getItem(int iSiteID, int iKey)
Parameters
Returns
getItemByID(int)
public ValueItem getItemByID(int iKey)
Parameters
iKey
int
Returns
getText(object)
Returns the text of a valueItems in the list. If the value is not in value the method returns an emoty string.
public string getText(object key)
Parameters
key
objectkey of value
Returns
getTextByID(int)
Returns the text of a valueItems in the list. If the value is not in value the method returns an emoty string.
public string getTextByID(int iKey)
Parameters
iKey
int