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

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

This interface is to represent the linked object.

```csharp theme={null}
public interface ILink
```

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

### FieldHasValue

Gets the status of field.

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

#### Property Value

bool

### LinkedObject

Gets the object container that has a relation with this.

```csharp theme={null}
ILinkContainer LinkedObject { get; }
```

#### Property Value

ILinkContainer

### Owner

Gets the object that has this link.

```csharp theme={null}
ILinkContainer Owner { get; }
```

#### Property Value

ILinkContainer

## Methods

### Clear(bool)

Clear the link relation.
\<param name="bBackup">The backup flag.\</param>

```csharp theme={null}
void Clear(bool bBackup)
```

#### Parameters

`bBackup` bool

### ClearBeforeDeserialize()

Disconnect the link relation before deserialize.

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

### ClearBeforeSwap()

Disconnect the link relation before undo/redo.

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

### DestroyObject(object, LinkEventArgs)

Destroy this link

```csharp theme={null}
void DestroyObject(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` object

The linked object.

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

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

### DisposeLink()

Dispose this link.

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

### GetChilds(HashSet\<ILinkContainer>)

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

#### Parameters

`lstObjs` HashSet\<ILinkContainer>

### GetFirstDesignEntities()

Get first design entities.

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

#### Returns

IEnumerable\<IObject>

### Reserve(LinkEventArgs)

Reserve link.

```csharp theme={null}
bool Reserve(LinkEventArgs args)
```

#### Parameters

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

The event argument.

#### Returns

bool

true if succeess to reserve, otherwise false.

### SetModified()

set modified link for undo/redo

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

### Verify(VerifiedResult)

Verify the link.
\<param name="vr">The verified result.\</param>

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

#### Parameters

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