For Data Shortcut reference entity (IsReferenceObject == true), gets the entity's reference information.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public DataShortcutKey GetReferenceInfo()
VB
Public Function GetReferenceInfo As DataShortcutKey
C++
public: DataShortcutKey^ GetReferenceInfo()
Return Value
DataShortcutKeyReturns the information of its referenced entity.
Example
Only if the entity is a DRef, it has reference information about its referenced entity. So this example shows API users should check the property of IsReferenceObject before calling GetReferenceInfo().1if (entity.IsReferenceObject) 2{ 3 var shortcutKey = entity.GetReferenceInfo(); 4}