> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class LinkContainer

Namespace: [VM.Managed](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed)\
Assembly: VMAppCore.dll

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

```csharp theme={null}
public abstract class LinkContainer : LinkableBase, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
[LinkContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkContainer.md)

#### Derived

[AttributeBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.AttributeBase.md),
[AttributeCollection](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.AttributeCollection.md),
[Container](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Container.md),
[DirectionBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DirectionBase.md),
[Body.EdgeContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Body.EdgeContainer.md),
[Expression](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Expression.md),
[Body.FaceContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Body.FaceContainer.md),
[Topology.IndexContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Topology.IndexContainer.md),
[Body.IndexContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Body.IndexContainer.md),
[LinkDictionaryCollectionBase\<T, TValue, TValueWrapper, TValueConverter>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Collections.LinkDictionaryCollectionBase-4.md),
[MeshFreeAnalysisLevel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.MeshFreeAnalysisLevel.md),
[MeshFreeAnalysisLevelGroup](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.MeshFreeAnalysisLevelGroup.md),
[PlaneBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.PlaneBase.md),
[PointBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.PointBase.md),
[Range](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Range.md),
[Body.VertexContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.CAD.Body.VertexContainer.md)

#### Implements

IObservableObject,
IDisposableObject,
ILinkable,
IObject,
ILinkContainer,
IOwned,
IHasID,
IEventProvider,
[ILinkContainerEvent](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ILinkContainerEvent.md),
[IVerifiable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.IVerifiable.md)

#### 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)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### LinkContainer(SerializationInfo, StreamingContext)

```csharp theme={null}
protected LinkContainer(SerializationInfo info, StreamingContext context)
```

#### Parameters

`info` [SerializationInfo](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo)

`context` [StreamingContext](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext)

### LinkContainer(IOwned)

Initializes a new instance of the [LinkContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkContainer.md) class.

```csharp theme={null}
public LinkContainer(IOwned owner)
```

#### Parameters

`owner` IOwned

The owner object.

### LinkContainer()

Initializes a new instance of the [LinkContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkContainer.md) class.

```csharp theme={null}
public LinkContainer()
```

## Properties

### ClearChildInfoBeforeDeserialize

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

```csharp theme={null}
virtual bool ClearChildInfoBeforeDeserialize { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Container

Gets or sets the owner object.

```csharp theme={null}
public IOwned Container { get; }
```

#### Property Value

IOwned

### Document

Gets the document that contains the object.

```csharp theme={null}
public virtual Document Document { get; }
```

#### Property Value

[Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.Document.md)

### ID

Gets or sets the id.

```csharp theme={null}
virtual Identifier ID { get; }
```

#### Property Value

Identifier

### IsChildExternable

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

```csharp theme={null}
virtual bool IsChildExternable { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### IsExternable

Gets a value indicating whether this instance is Externable.

```csharp theme={null}
virtual bool IsExternable { get; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Owner

Gets the owner object.

```csharp theme={null}
public virtual ObjectBase Owner { get; }
```

#### Property Value

[ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md)

## Methods

### CanBeDestroy(object)

```csharp theme={null}
protected virtual bool CanBeDestroy(object A_0)
```

#### Parameters

`A_0` [object](https://learn.microsoft.com/dotnet/api/system.object)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CustomGetObjectData(SerializationInfo, StreamingContext)

Customize the GetObjectData function.

```csharp theme={null}
protected virtual void CustomGetObjectData(SerializationInfo info, StreamingContext context)
```

#### Parameters

`info` [SerializationInfo](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo)

The info.

`context` [StreamingContext](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext)

The context.

### Dispose(bool)

```csharp theme={null}
[HandleProcessCorruptedStateExceptions]
protected override void Dispose(bool A_0)
```

#### Parameters

`A_0` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### DisposeManagedResources()

Dispose managed resources

```csharp theme={null}
protected override void DisposeManagedResources()
```

### GetCopy(object)

Gets the copied object.

```csharp theme={null}
protected object GetCopy(object original)
```

#### Parameters

`original` [object](https://learn.microsoft.com/dotnet/api/system.object)

The original object.

#### Returns

[object](https://learn.microsoft.com/dotnet/api/system.object)

The copied object.

### GetSerializedData(SerializationInfo, StreamingContext)

Load Customized Data function.

```csharp theme={null}
protected void GetSerializedData(SerializationInfo info, StreamingContext context)
```

#### Parameters

`info` [SerializationInfo](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo)

The info.

`context` [StreamingContext](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext)

The context.

### GetTargetListForUpdate()

Gets a updated objects.

```csharp theme={null}
virtual List<IEventProvider> GetTargetListForUpdate()
```

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<IEventProvider>

### Initialize(ConvertFactor)

Initializes member through unit convert factor.

```csharp theme={null}
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].

```csharp theme={null}
protected virtual bool IsSerializableEvent(Delegate del)
```

#### Parameters

`del` [Delegate](https://learn.microsoft.com/dotnet/api/system.delegate)

The delegate.

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

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

### LinkAddedToDocument(object, AddToDocEventArgs)

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

```csharp theme={null}
protected virtual void LinkAddedToDocument(object objNotifier, AddToDocEventArgs arg)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

The added object.

`arg` [AddToDocEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.AddToDocEventArgs.md)

The event information that added to document.

### LinkRemovedFromDocument(object, RemoveFromDocEventArgs)

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

```csharp theme={null}
protected virtual void LinkRemovedFromDocument(object objNotifier, RemoveFromDocEventArgs arg)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

The removed object.

`arg` [RemoveFromDocEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.RemoveFromDocEventArgs.md)

The event information that removed to document.

### LinkRequestDestroy(object, LinkEventArgs)

The destroy event occured from the linked object.

```csharp theme={null}
protected virtual void LinkRequestDestroy(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

The linked object.

`arg` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

The destroy event information.

### LinkRequestDestroying(object, LinkEventArgs)

The destroying event occured from the linked object.

```csharp theme={null}
protected virtual void LinkRequestDestroying(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

The linked object.

`arg` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

The destroy event information.

### LinkRequestUpdate(object, LinkEventArgs)

The update event occured from the linked object.

```csharp theme={null}
protected virtual void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

The linked object.

`arg` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

The update event information.

### LinkRequestUpdating(object, LinkEventArgs)

The updating event occured from the linked object.

```csharp theme={null}
protected virtual void LinkRequestUpdating(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

The linked object.

`arg` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

The update event information.

### OnChildUpdated(object, LinkEventArgs)

Called when \[child updated].

```csharp theme={null}
protected virtual void OnChildUpdated(object obj, LinkEventArgs args)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The object.

`args` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

The [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md) instance containing the event data.

### OnContainerDestroy(object, LinkEventArgs)

Called when \[container destroy].

```csharp theme={null}
protected virtual void OnContainerDestroy(object obj, LinkEventArgs args)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

The object.

`args` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

The [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md) instance containing the event data.

### OnDeserialization(object)

Called when \[deserialization].

```csharp theme={null}
protected override void OnDeserialization(object sender)
```

#### Parameters

`sender` [object](https://learn.microsoft.com/dotnet/api/system.object)

The sender.

### OnLinkReserved(ILink, object, EventArgs)

```csharp theme={null}
protected virtual void OnLinkReserved(ILink A_0, object A_1, EventArgs A_2)
```

#### Parameters

`A_0` [ILink](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ILink.md)

`A_1` [object](https://learn.microsoft.com/dotnet/api/system.object)

`A_2` [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs)

### SetContainer(IOwned, bool)

```csharp theme={null}
public virtual void SetContainer(IOwned owner, bool bBackup)
```

#### Parameters

`owner` IOwned

`bBackup` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### SetFlagWhenXMLFile(string, bool)

Set flag when xml file open

```csharp theme={null}
public static void SetFlagWhenXMLFile(string strFilePath, bool bValue)
```

#### Parameters

`strFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The file path.

`bValue` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

The flag.

### SetModified()

Called when object modified.

```csharp theme={null}
public virtual void SetModified()
```

### SkipUpdateObjectImpl()

Skip the object that updated.

```csharp theme={null}
virtual bool SkipUpdateObjectImpl()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Verify(VerifiedResult)

Verify.

```csharp theme={null}
protected virtual void Verify(VerifiedResult vr)
```

#### Parameters

`vr` [VerifiedResult](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.VerifiedResult.md)

The Verified result.

### raise\_OnAdded(object, AddToDocEventArgs)

```csharp theme={null}
public void raise_OnAdded(object objNotifier, AddToDocEventArgs args)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [AddToDocEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.AddToDocEventArgs.md)

### raise\_OnDestroy(object, LinkEventArgs)

```csharp theme={null}
public void raise_OnDestroy(object objNotifier, LinkEventArgs args)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

### raise\_OnDestroying(object, LinkEventArgs)

```csharp theme={null}
public void raise_OnDestroying(object objNotifier, LinkEventArgs args)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

### raise\_OnRemoved(object, RemoveFromDocEventArgs)

```csharp theme={null}
public void raise_OnRemoved(object obj, RemoveFromDocEventArgs args)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [RemoveFromDocEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.RemoveFromDocEventArgs.md)

### raise\_OnUpdate(object, LinkEventArgs)

```csharp theme={null}
public void raise_OnUpdate(object objNotifier, LinkEventArgs args)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

### raise\_OnUpdating(object, LinkEventArgs)

```csharp theme={null}
public void raise_OnUpdating(object objNotifier, LinkEventArgs args)
```

#### Parameters

`objNotifier` [object](https://learn.microsoft.com/dotnet/api/system.object)

`args` [LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)

### OnAdded

Occurs when \[on add].

```csharp theme={null}
public event EventHandler<AddToDocEventArgs> OnAdded
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[AddToDocEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.AddToDocEventArgs.md)>

### OnDestroy

Occurs when \[on destroy].

```csharp theme={null}
public event EventHandler<LinkEventArgs> OnDestroy
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)>

### OnDestroying

Occurs when \[on destroy].

```csharp theme={null}
public event EventHandler<LinkEventArgs> OnDestroying
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)>

### OnRemoved

Occurs when \[on remove].

```csharp theme={null}
public event EventHandler<RemoveFromDocEventArgs> OnRemoved
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[RemoveFromDocEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.RemoveFromDocEventArgs.md)>

### OnUpdate

Occurs when \[on update].

```csharp theme={null}
public event EventHandler<LinkEventArgs> OnUpdate
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)>

### OnUpdating

Occurs when \[on update].

```csharp theme={null}
public event EventHandler<LinkEventArgs> OnUpdating
```

#### Event Type

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler-1)\<[LinkEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.LinkEventArgs.md)>
