PhoneSystemTryGetByIDT 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 bool TryGetByID<T>(
	int id,
	out T snapshot
)
where T : class, IOMSnapshot

Parameters

id  Int32
hash code of the object
snapshot  T
out object

Type Parameters

T

Return Value

Boolean
true if object is found

Implements

IPhoneSystemTryGetByIDT(Int32, T)

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