    

 ## On this page

  

 

 # Interface ILinkCollection

 Last update: 16.07.2025 

Namespace: [VM.Managed.Collections](VM.Managed.Collections.md)  
Assembly: VMAppCore.dll

```csharp
public interface ILinkCollection

```

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Properties

### Container

```csharp
ILinkContainer Container { get; }

```

#### Property Value

ILinkContainer

### Count

Get the item count in the collection

```csharp
int Count { get; }

```

#### Property Value

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

## Methods

### Clear()

Clear collection.

```csharp
void Clear()

```

### Contains(object)

```csharp
bool Contains(object @object)

```

#### Parameters

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

#### Returns

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

### DestroyObject(object, LinkEventArgs)

Destroy this link

```csharp
void DestroyObject(object objNotifier, LinkEventArgs arg)

```

#### Parameters

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

The linked object.

`arg` [LinkEventArgs](VM.Managed.LinkEventArgs.md)

The  instance containing the event data.

### DisposeCollection()

Dispose this collection

```csharp
void DisposeCollection()

```

### GetAllLinks(ICollection&lt;ILink&gt;)

```csharp
void GetAllLinks(ICollection<ILink> colLinks)

```

#### Parameters

`colLinks` [ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)&lt;[ILink](VM.Managed.ILink.md)&gt;

### MakeNullLink(object)

```csharp
bool MakeNullLink(object @object)

```

#### Parameters

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

#### Returns

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

### RemoveLink(ILink)

Remove specific link from the collection.

```csharp
void RemoveLink(ILink link)

```

#### Parameters

`link` [ILink](VM.Managed.ILink.md)

The link to remove

### Reserve(object, LinkEventArgs)

```csharp
bool Reserve(object objNotifier, LinkEventArgs arg)

```

#### Parameters

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

`arg` [LinkEventArgs](VM.Managed.LinkEventArgs.md)

#### Returns

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