    

 ## On this page

  

 

 # Class LinkCollectionWithFixedAddition&lt;T, TLink, TCollection\\&gt;

 Last update: 16.07.2025 

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

```csharp
public sealed class LinkCollectionWithFixedAddition<T, TLink, TCollection> : LinkCollection<T, TLink, TCollection>, ILinkCollection, IPostDeserialized where T : class where TLink : class, ITypedLink<T> where TCollection : ICollection<TLink>, new()

```

#### Type Parameters

`T`

`TLink`

`TCollection`

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [LinkCollection&lt;T, TLink, TCollection&gt;](VM.Managed.Collections.LinkCollection-3.md) ← [LinkCollectionWithFixedAddition&lt;T, TLink, TCollection&gt;](VM.Managed.Collections.LinkCollectionWithFixedAddition-3.md)

#### Implements

[ILinkCollection](VM.Managed.Collections.ILinkCollection.md), IPostDeserialized

#### Inherited Members

[LinkCollection&lt;T, TLink, TCollection&gt;.raise\_CollectionChanged(object, NotifyCollectionChangedEventArgs)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_raise_CollectionChanged_System_Object_System_Collections_Specialized_NotifyCollectionChangedEventArgs_), [LinkCollection&lt;T, TLink, TCollection&gt;.Add(T)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Add__0_), [LinkCollection&lt;T, TLink, TCollection&gt;.Add(T, bool)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Add__0_System_Boolean_), [LinkCollection&lt;T, TLink, TCollection&gt;.Clear()](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Clear), [LinkCollection&lt;T, TLink, TCollection&gt;.Clear(bool)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Clear_System_Boolean_), [LinkCollection&lt;T, TLink, TCollection&gt;.Contains(T)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Contains__0_), [LinkCollection&lt;T, TLink, TCollection&gt;.CopyTo(T\[\], int)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_CopyTo__0___System_Int32_), [LinkCollection&lt;T, TLink, TCollection&gt;.GetEnumeratorImpl()](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_GetEnumeratorImpl), [LinkCollection&lt;T, TLink, TCollection&gt;.GetEnumerator()](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_GetEnumerator), [LinkCollection&lt;T, TLink, TCollection&gt;.Remove(T)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Remove__0_), [LinkCollection&lt;T, TLink, TCollection&gt;.Remove(T, bool)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Remove__0_System_Boolean_), [LinkCollection&lt;T, TLink, TCollection&gt;.SetModified(ModifiedType, bool)](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_SetModified_VM_Managed_Collections_ModifiedType_System_Boolean_), [LinkCollection&lt;T, TLink, TCollection&gt;.IsReadOnly](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_IsReadOnly), [LinkCollection&lt;T, TLink, TCollection&gt;.Count](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_Count), [LinkCollection&lt;T, TLink, TCollection&gt;.CollectionChanged](VM.Managed.Collections.LinkCollection-3.md#VM_Managed_Collections_LinkCollection_3_CollectionChanged)

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

## Constructors

### LinkCollectionWithFixedAddition(ILinkContainer, int)

```csharp
public LinkCollectionWithFixedAddition(ILinkContainer objParent, int nMin)

```

#### Parameters

`objParent` ILinkContainer

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

### LinkCollectionWithFixedAddition(ILinkContainer, int, int)

```csharp
public LinkCollectionWithFixedAddition(ILinkContainer objParent, int nMin, int nMax)

```

#### Parameters

`objParent` ILinkContainer

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

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

### LinkCollectionWithFixedAddition(ILinkContainer, TCollection, int)

```csharp
public LinkCollectionWithFixedAddition(ILinkContainer objParent, TCollection collection, int nMin)

```

#### Parameters

`objParent` ILinkContainer

`collection` TCollection

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

### LinkCollectionWithFixedAddition(ILinkContainer, TCollection, int, int)

```csharp
public LinkCollectionWithFixedAddition(ILinkContainer objParent, TCollection collection, int nMin, int nMax)

```

#### Parameters

`objParent` ILinkContainer

`collection` TCollection

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

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

## Methods

### Add(T)

```csharp
public override sealed void Add(T item)

```

#### Parameters

`item` T

### Add(T, bool)

```csharp
public override sealed void Add(T item, bool bContainsDocument)

```

#### Parameters

`item` T

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

### Remove(T)

```csharp
public override sealed bool Remove(T item)

```

#### Parameters

`item` T

#### Returns

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

### Remove(T, bool)

```csharp
public override sealed bool Remove(T item, bool bContainsDocument)

```

#### Parameters

`item` T

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

#### Returns

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