PhoneSystemGetByIDT(Int32) Method

Allows to get Configuration object by persistent object hash code.
Supported objects are:
PhoneBookEntry
DN
Gateway
ActiveConnection
RegistrarRecord
OutboundRule
Group

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
public T GetByID<T>(
	int id
)
where T : class, IOMSnapshot

Parameters

id  Int32
id of the object

Type Parameters

T

Return Value

T

Implements

IPhoneSystemGetByIDT(Int32)

Remarks

this method allows to get fresh copy of an object basing on its hash code. All copies of the same persitent object has the same hash code, so implementation may use it to maintain references at runtime. When persistent object is deleted - the ID becomes invalid. HashCodes of the objects of different types can be the same.

See Also