Assembly: VMAppCore.dll This class is to represent the linked object relationship with its container object.
Type Parameters
T
TUpdate
TDestroy
TOwnerDestroy
Inheritance
object ← Link<T, TUpdate, TDestroy, TOwnerDestroy>Implements
ITypedLink<T>, ILink, IChangeReferenceExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Constructors
Link()
Link(ILinkContainer)
Initializes a new instance of the Link`4 class.Parameters
objParent ILinkContainer
The linked object’s container object.
Link(ILinkContainer, T)
Initializes a new instance of the Link`4 class.Parameters
objParent ILinkContainer
The linked object’s container object.
obj T
The linked object.
Link(SerializationInfo, StreamingContext)
Parameters
info SerializationInfo
context StreamingContext
Fields
m_obj
Field Value
ObjectEventCorem_objLinkOwner
Field Value
ILinkContainerProperties
FullName
Gets the linked object’s full name.Property Value
stringIsReference
Gets a value indicating whether linked object is the reference.Property Value
boolLinkedObj
Gets the object container that has a relation with this.Property Value
ILinkContainerName
Gets the linked object’s name.Property Value
stringObject
Gets or sets the linked object.Property Value
TPrototype
Gets the linked object’s prototype.Property Value
TMethods
ClearBeforeDeserialize()
Disconnect the link relation before deserialize.ClearBeforeSwap()
Disconnect the link relation before undo/redo.DestroyObject(object, LinkEventArgs)
Destroy this linkParameters
objNotifier object
The linked object.
arg LinkEventArgs
The LinkEventArgs instance containing the event data.
Dispose(bool)
Parameters
A_0 bool
Dispose()
destroy a instance of the Link`4 class.GetChilds(HashSet<ILinkContainer>)
Parameters
A_0 HashSet<ILinkContainer>
GetFirstDesignEntities()
Get first design entities.Returns
IEnumerable<IObject>GetObjectData(SerializationInfo, StreamingContext)
Parameters
info SerializationInfo
__unnamed001 StreamingContext
RegisterEvent(bool)
Parameters
bBackup bool
Reserve(LinkEventArgs)
Reserve link.Parameters
args LinkEventArgs
The event argument.
Returns
bool true if succeess to reserve, otherwise false.SetModified()
set modified link for undo/redoUnregisterEvent(bool)
Parameters
bBackup bool
Operators
implicit operator Linker<T>(Link<T, TUpdate, TDestroy, TOwnerDestroy>)
Parameters
lnk Link<T, TUpdate, TDestroy, TOwnerDestroy>