Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class LinkContainer

Last update: 16.07.2025

Namespace: VM.Managed
Assembly: VMAppCore.dll

This class is to represent the object container that has a relation with other object.

public abstract class LinkContainer : LinkableBase, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable

Inheritance

object ← ObservableObject ← LinkableBase ← LinkContainer

Derived

AttributeBase, AttributeCollection, Container, DirectionBase, Body.EdgeContainer, Expression, Body.FaceContainer, Body.IndexContainer, Topology.IndexContainer, LinkDictionaryCollectionBase<T, TValue, TValueWrapper, TValueConverter>, MeshFreeAnalysisLevel, MeshFreeAnalysisLevelGroup, PlaneBase, PointBase, Range, Body.VertexContainer

Implements

IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable

Inherited Members

LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

LinkContainer(SerializationInfo, StreamingContext)

protected LinkContainer(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

context StreamingContext

LinkContainer(IOwned)

Initializes a new instance of the class.

public LinkContainer(IOwned owner)

Parameters

owner IOwned

The owner object.

Initializes a new instance of the class.

public LinkContainer()

Properties

ClearChildInfoBeforeDeserialize

Gets a value indicating whether [clear child info before deserialize].

virtual bool ClearChildInfoBeforeDeserialize { get; }

Property Value

bool

Container

Gets or sets the owner object.

public IOwned Container { get; }

Property Value

IOwned

Document

Gets the document that contains the object.

public virtual Document Document { get; }

Property Value

Document

ID

Gets or sets the id.

virtual Identifier ID { get; }

Property Value

Identifier

IsChildExternable

Gets a value indicating whether this instance's child is Externable.

virtual bool IsChildExternable { get; }

Property Value

bool

IsExternable

Gets a value indicating whether this instance is Externable.

virtual bool IsExternable { get; }

Property Value

bool

Owner

Gets the owner object.

public virtual ObjectBase Owner { get; }

Property Value

ObjectBase

Methods

CanBeDestroy(object)

protected virtual bool CanBeDestroy(object A_0)

Parameters

A_0 object

Returns

bool

CustomGetObjectData(SerializationInfo, StreamingContext)

Customize the GetObjectData function.

protected virtual void CustomGetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The info.

context StreamingContext

The context.

Dispose(bool)

[HandleProcessCorruptedStateExceptions]
protected override void Dispose(bool A_0)

Parameters

A_0 bool

DisposeManagedResources()

Dispose managed resources

protected override void DisposeManagedResources()

GetCopy(object)

Gets the copied object.

protected object GetCopy(object original)

Parameters

original object

The original object.

Returns

object

The copied object.

GetSerializedData(SerializationInfo, StreamingContext)

Load Customized Data function.

protected void GetSerializedData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The info.

context StreamingContext

The context.

GetTargetListForUpdate()

Gets a updated objects.

virtual List<IEventProvider> GetTargetListForUpdate()

Returns

List<IEventProvider>

Initialize(ConvertFactor)

Initializes member through unit convert factor.

public virtual void Initialize(Unit.ConvertFactor factor)

Parameters

factor Unit.ConvertFactor

The unit convert factor.

IsSerializableEvent(Delegate)

Determines whether is [serializable event] [the specified delegate].

protected virtual bool IsSerializableEvent(Delegate del)

Parameters

del Delegate

The delegate.

Returns

bool

true if is [serializable event] [the specified delegate]; otherwise, false.

LinkAddedToDocument(object, AddToDocEventArgs)

The event that added to document occured from the linked object.

protected virtual void LinkAddedToDocument(object objNotifier, AddToDocEventArgs arg)

Parameters

objNotifier object

The added object.

arg AddToDocEventArgs

The event information that added to document.

LinkRemovedFromDocument(object, RemoveFromDocEventArgs)

The event that removed from document occured from the linked object.

protected virtual void LinkRemovedFromDocument(object objNotifier, RemoveFromDocEventArgs arg)

Parameters

objNotifier object

The removed object.

arg RemoveFromDocEventArgs

The event information that removed to document.

LinkRequestDestroy(object, LinkEventArgs)

The destroy event occured from the linked object.

protected virtual void LinkRequestDestroy(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The destroy event information.

LinkRequestDestroying(object, LinkEventArgs)

The destroying event occured from the linked object.

protected virtual void LinkRequestDestroying(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The destroy event information.

LinkRequestUpdate(object, LinkEventArgs)

The update event occured from the linked object.

protected virtual void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The update event information.

LinkRequestUpdating(object, LinkEventArgs)

The updating event occured from the linked object.

protected virtual void LinkRequestUpdating(object objNotifier, LinkEventArgs arg)

Parameters

objNotifier object

The linked object.

arg LinkEventArgs

The update event information.

OnChildUpdated(object, LinkEventArgs)

Called when [child updated].

protected virtual void OnChildUpdated(object obj, LinkEventArgs args)

Parameters

obj object

The object.

args LinkEventArgs

The instance containing the event data.

OnContainerDestroy(object, LinkEventArgs)

Called when [container destroy].

protected virtual void OnContainerDestroy(object obj, LinkEventArgs args)

Parameters

obj object

The object.

args LinkEventArgs

The instance containing the event data.

OnDeserialization(object)

Called when [deserialization].

protected override void OnDeserialization(object sender)

Parameters

sender object

The sender.

protected virtual void OnLinkReserved(ILink A_0, object A_1, EventArgs A_2)

Parameters

A_0 ILink

A_1 object

A_2 EventArgs

SetContainer(IOwned, bool)

public virtual void SetContainer(IOwned owner, bool bBackup)

Parameters

owner IOwned

bBackup bool

SetFlagWhenXMLFile(string, bool)

Set flag when xml file open

public static void SetFlagWhenXMLFile(string strFilePath, bool bValue)

Parameters

strFilePath string

The file path.

bValue bool

The flag.

SetModified()

Called when object modified.

public virtual void SetModified()

SkipUpdateObjectImpl()

Skip the object that updated.

virtual bool SkipUpdateObjectImpl()

Returns

bool

Verify(VerifiedResult)

Verify.

protected virtual void Verify(VerifiedResult vr)

Parameters

vr VerifiedResult

The Verified result.

raise_OnAdded(object, AddToDocEventArgs)

public void raise_OnAdded(object objNotifier, AddToDocEventArgs args)

Parameters

objNotifier object

args AddToDocEventArgs

raise_OnDestroy(object, LinkEventArgs)

public void raise_OnDestroy(object objNotifier, LinkEventArgs args)

Parameters

objNotifier object

args LinkEventArgs

raise_OnDestroying(object, LinkEventArgs)

public void raise_OnDestroying(object objNotifier, LinkEventArgs args)

Parameters

objNotifier object

args LinkEventArgs

raise_OnRemoved(object, RemoveFromDocEventArgs)

public void raise_OnRemoved(object obj, RemoveFromDocEventArgs args)

Parameters

obj object

args RemoveFromDocEventArgs

raise_OnUpdate(object, LinkEventArgs)

public void raise_OnUpdate(object objNotifier, LinkEventArgs args)

Parameters

objNotifier object

args LinkEventArgs

raise_OnUpdating(object, LinkEventArgs)

public void raise_OnUpdating(object objNotifier, LinkEventArgs args)

Parameters

objNotifier object

args LinkEventArgs

OnAdded

Occurs when [on add].

public event EventHandler<AddToDocEventArgs> OnAdded

Event Type

EventHandler<AddToDocEventArgs>

OnDestroy

Occurs when [on destroy].

public event EventHandler<LinkEventArgs> OnDestroy

Event Type

EventHandler<LinkEventArgs>

OnDestroying

Occurs when [on destroy].

public event EventHandler<LinkEventArgs> OnDestroying

Event Type

EventHandler<LinkEventArgs>

OnRemoved

Occurs when [on remove].

public event EventHandler<RemoveFromDocEventArgs> OnRemoved

Event Type

EventHandler<RemoveFromDocEventArgs>

OnUpdate

Occurs when [on update].

public event EventHandler<LinkEventArgs> OnUpdate

Event Type

EventHandler<LinkEventArgs>

OnUpdating

Occurs when [on update].

public event EventHandler<LinkEventArgs> OnUpdating

Event Type

EventHandler<LinkEventArgs>

Connect with Ansys