Class LocationPrimaryCollection
- Namespace
- SWConfigDataClientLib.Proxies.IppbxServer
- Assembly
- IpPbxCDSClientLib.dll
Collection of primary configuration items. The primary configuration item is LocationEntry. This class is generated.
[DefaultMember("Item")]
public class LocationPrimaryCollection : SArrayListFacade
- Inheritance
-
LocationPrimaryCollection
- Inherited Members
Constructors
LocationPrimaryCollection()
standard constructor
public LocationPrimaryCollection()
LocationPrimaryCollection(bool)
public LocationPrimaryCollection(bool sync)
Parameters
sync
bool
Fields
ClassTrace
protected static STraceInfo ClassTrace
Field Value
- STraceInfo
Properties
this[int]
Get the item per index
public virtual LocationEntry this[int Index] { get; set; }
Parameters
Index
int
Property Value
- LocationEntry
LocationEntry
ProxyNumber
protected virtual long ProxyNumber { get; }
Property Value
Valid
True if is valid data object
public virtual bool Valid { get; }
Property Value
Methods
Add(LocationEntry)
Adds the item to the collection.
public virtual void Add(LocationEntry entry)
Parameters
entry
LocationEntryEntry to be added.
Remarks
The item will not be stored in database directly. To effect the database use the method update() of LocationFacade.
Add(LocationPrimaryCollection)
Adds the item to the collection.
public virtual void Add(LocationPrimaryCollection Collection)
Parameters
Collection
LocationPrimaryCollection
Remarks
The item will not be stored in database. To effect the database use members of .
ContainsEntryInLocalCollectionByName(string)
Checks is the item with Name = key in collection.
public virtual bool ContainsEntryInLocalCollectionByName(string key)
Parameters
key
stringName
Returns
- bool
Returns true if collection contains item with the given key.
ContainsObjectByPrimaryKey(int)
Checks if the item, identified by the primary key, is in this collection.
Element of primary key.public virtual bool ContainsObjectByPrimaryKey(int LocationID)
Parameters
LocationID
int
Returns
- bool
True if entry is in collection, otherwise false.
CreateSortableFilterCollection()
Creates a sortable collection containing all current entries of this collection.
public virtual LocationEntrySortableCollection CreateSortableFilterCollection()
Returns
- LocationEntrySortableCollection
Sortable collection with optional filter methods.
GetAllLocationIDs()
public SIntList GetAllLocationIDs()
Returns
GetEntryFromLocalCollectionByName(string)
Retrieves the item with Name = key from this collection.
public virtual LocationEntry GetEntryFromLocalCollectionByName(string key)
Parameters
key
stringName
Returns
- LocationEntry
Entry from collection
Exceptions
- Exception
Will be thrown if item is not in collection.
GetObjectByPrimaryKey(int)
Gets the item identified by the primary key from this collection.
Primary key of item.public virtual LocationEntry GetObjectByPrimaryKey(int LocationID)
Parameters
LocationID
int
Returns
- LocationEntry
Entry
Remove(LocationEntry)
Removes the item from the collection.
public virtual void Remove(LocationEntry entry)
Parameters
entry
LocationEntryEntry to be removed.
Remarks
The item will not be deleted in database directly. To effect the database use update(true) of .