> ## 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.

# Interface ILinkContainer

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

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

```csharp theme={null}
public interface ILinkContainer : IOwned, IHasID
```

#### Implements

[IOwned](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IOwned.md),
IHasID

#### Extension Methods

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

## Properties

### ClearChildInfoBeforeDeserialize

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

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

#### Property Value

bool

## Methods

### ClearLinkBeforeDeserialize()

Disconnect the link relation.

```csharp theme={null}
void ClearLinkBeforeDeserialize()
```

### ClearLinkBeforeSwap()

Disconnect the link relation for undo/redo.

```csharp theme={null}
void ClearLinkBeforeSwap()
```

### GetChilds(HashSet\<ILinkContainer>)

Get child objects.

```csharp theme={null}
void GetChilds(HashSet<ILinkContainer> lstObjs)
```

#### Parameters

`lstObjs` HashSet\<[ILinkContainer](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.ILinkContainer.md)>

The object list.

### GetFirstDesignEntities()

Get first design entities.

```csharp theme={null}
IEnumerable<IObject> GetFirstDesignEntities()
```

#### Returns

IEnumerable\<[IObject](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.IObject.md)>

The collection of IObject>

### OnReserved(object, object, EventArgs)

Called after reserve linked object.

```csharp theme={null}
void OnReserved(object reserved, object objNotifier, EventArgs args)
```

#### Parameters

`reserved` object

The reserved object.

`objNotifier` object

The notifier object.

`args` EventArgs

The event argument.

### SetDestroyedLink()

Called when object destroyed.

```csharp theme={null}
void SetDestroyedLink()
```

### SetModifiedAllLink()

Called when all object modified.

```csharp theme={null}
void SetModifiedAllLink()
```

### SetModifiedLink()

Called when object modified.

```csharp theme={null}
void SetModifiedLink()
```

### SkipModifiedEvent()

Skip Modified event for undo/redo.

```csharp theme={null}
bool SkipModifiedEvent()
```

#### Returns

bool

True if succeeded, otherwise false.
