PhoneSystemTryGetByIDT Method
Namespace: TCX.ConfigurationAssembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
public bool TryGetByID<T>(
int id,
out T snapshot
)
where T : class, IOMSnapshot
- id Int32
- hash code of the object
- snapshot T
- out object
- T
Booleantrue if object is found
IPhoneSystemTryGetByIDT(Int32, T)
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.