Class PublicNumberEntryCollection
- Namespace
- SWConfigDataClientLib.Proxies.InternalNumbers
- Assembly
- IpPbxCDSClientLib.dll
Collection of simple configuration items. The collenction is part of an updateable configuration item. The simple configuration item is PublicNumberEntry. The owning configuration item is InternalNumberEntry. For reading or writing this configuration items to database use methods of InternalNumberEntry. This class is generated.
[DefaultMember("Item")]
public class PublicNumberEntryCollection : SArrayList
- Inheritance
-
PublicNumberEntryCollection
- Inherited Members
Remarks
Thread Safety: safe
Constructors
PublicNumberEntryCollection()
public PublicNumberEntryCollection()
Fields
ClassTrace
protected static STraceInfo ClassTrace
Field Value
- STraceInfo
Properties
this[int]
Get the item per index
public virtual PublicNumberEntry this[int Index] { get; set; }
Parameters
Index
int
Property Value
- PublicNumberEntry
PhoneCallEntry
Remarks
Thread Safety: safe
ProxyNumber
protected virtual long ProxyNumber { get; }
Property Value
Methods
Add(PublicNumberEntry)
Adds the item to the collection.
public virtual void Add(PublicNumberEntry entry)
Parameters
entry
PublicNumberEntryEntry to be added.
Remarks
The item will not be stored in database directly. To effect the database use the method update() of PublicNumberEnum.
ContainsEntryInLocalCollectionByNumber(string)
Checks is the item with Number = key in collection.
public virtual bool ContainsEntryInLocalCollectionByNumber(string key)
Parameters
key
stringNumber
Returns
- bool
Returns true if collection contains item with the given key.
Remarks
Thread Safety: safe
ContainsObjectByPrimaryKey(int)
Checks if the item, identified by the primary key, is in this collection.
Element of primary key.public virtual bool ContainsObjectByPrimaryKey(int PublicNumberID)
Parameters
PublicNumberID
int
Returns
- bool
True if entry is in collection, otherwise false.
Remarks
Thread Safety: safe
CopyFrom(PublicNumberEntryCollection)
Copies the given collection into this collection by cloning its items.
public virtual void CopyFrom(PublicNumberEntryCollection sourceCol)
Parameters
sourceCol
PublicNumberEntryCollectionThe source collection.
Remarks
Thread Safety: safe
CreateSortableFilterCollection()
Creates a sortable collection containing all current entries of this collection.
public virtual PublicNumberEntrySortableCollection CreateSortableFilterCollection()
Returns
- PublicNumberEntrySortableCollection
Sortable collection with optional filter methods.
Remarks
Thread Safety: safe
Dispose()
Dispose
public virtual void Dispose()
Remarks
Thread Safety: safe
GetEntryFromLocalCollectionByNumber(string)
Retrieves the item with Number = key from this collection.
public virtual PublicNumberEntry GetEntryFromLocalCollectionByNumber(string key)
Parameters
key
stringNumber
Returns
- PublicNumberEntry
Entry from collection
Remarks
Thread Safety: safe
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 PublicNumberEntry GetObjectByPrimaryKey(int PublicNumberID)
Parameters
PublicNumberID
int
Returns
- PublicNumberEntry
Entry
Remarks
Thread Safety: safe
Remove(PublicNumberEntry)
Removes the item from the collection. And marks it as deleted.
public virtual void Remove(PublicNumberEntry entry)
Parameters
entry
PublicNumberEntryEntry to be removed.
Remarks
The item will not be deleted in database directly. To effect the database use update() of PublicNumberEnum.