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

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

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

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

### Container

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

#### Property Value

ILinkContainer

### Count

Get the item count in the collection

```csharp theme={null}
int Count { get; }
```

#### Property Value

int

## Methods

### Clear()

Clear collection.

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

### Contains(object)

```csharp theme={null}
bool Contains(object @object)
```

#### Parameters

`object` object

#### Returns

bool

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

### DisposeCollection()

Dispose this collection

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

### GetAllLinks(ICollection\<ILink>)

```csharp theme={null}
void GetAllLinks(ICollection<ILink> colLinks)
```

#### Parameters

`colLinks` ICollection\<[ILink](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.ILink.md)>

### MakeNullLink(object)

```csharp theme={null}
bool MakeNullLink(object @object)
```

#### Parameters

`object` object

#### Returns

bool

### RemoveLink(ILink)

Remove specific link from the collection.

```csharp theme={null}
void RemoveLink(ILink link)
```

#### Parameters

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

The link to remove

### Reserve(object, LinkEventArgs)

```csharp theme={null}
bool Reserve(object objNotifier, LinkEventArgs arg)
```

#### Parameters

`objNotifier` object

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

#### Returns

bool
