Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class LinkCollection<T, TLink, TCollection\>

Last update: 16.07.2025

Namespace: VM.Managed.Collections
Assembly: VMAppCore.dll

public class LinkCollection<t tcollection> : ILinkCollection, IPostDeserialized where T : class where TLink : class, ITypedLink<t> where TCollection : ICollection<tlink>, new()

Type Parameters

T

TLink

TCollection

Inheritance

objectLinkCollection

Implements

ILinkCollection, IPostDeserialized

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

public LinkCollection(ILinkContainer objParent)

Parameters

objParent ILinkContainer

public LinkCollection(ILinkContainer objParent, TCollection collection)

Parameters

objParent ILinkContainer

collection TCollection

Fields

m_collection

protected TCollection m_collection

Field Value

TCollection

m_ehCollectionChanged

protected NotifyCollectionChangedEventHandler m_ehCollectionChanged

Field Value

NotifyCollectionChangedEventHandler

m_objLinkOwner

protected ILinkContainer m_objLinkOwner

Field Value

ILinkContainer

m_syncLock

protected object m_syncLock

Field Value

object

Properties

Count

public virtual int Count { get; }

Property Value

int

IsReadOnly

public virtual bool IsReadOnly { get; }

Property Value

bool

Methods

Add(T)

public virtual void Add(T item)

Parameters

item T

Add(T, bool)

public virtual void Add(T item, bool bContainsDocument)

Parameters

item T

bContainsDocument bool

protected void AddDestroyEvent(TLink obj)

Parameters

obj TLink

Clear()

public virtual void Clear()

Clear(bool)

public virtual void Clear(bool bContainsDocument)

Parameters

bContainsDocument bool

Contains(T)

public virtual bool Contains(T item)

Parameters

item T

Returns

bool

CopyTo(T[], int)

public virtual void CopyTo(T[] ar, int arrayIndex)

Parameters

ar T[]

arrayIndex int

GetEnumerator()

public virtual IEnumerator<t> GetEnumerator()

Returns

IEnumerator

GetEnumeratorImpl()

IEnumerator GetEnumeratorImpl()

Returns

IEnumerator

Remove(T)

public virtual bool Remove(T item)

Parameters

item T

Returns

bool

Remove(T, bool)

public virtual bool Remove(T item, bool bContainsDocument)

Parameters

item T

bContainsDocument bool

Returns

bool

SetModified(ModifiedType, bool)

public void SetModified(ModifiedType modifiedType, bool bContainsDocument)

Parameters

modifiedType ModifiedType

bContainsDocument bool

SimpleValueModifiedForCollection(ModifiedType)

protected void SimpleValueModifiedForCollection(ModifiedType modifiedType)

Parameters

modifiedType ModifiedType

SimpleValueModifiedForCollection(ModifiedType, bool)

protected void SimpleValueModifiedForCollection(ModifiedType modifiedType, bool bContainsDocument)

Parameters

modifiedType ModifiedType

bContainsDocument bool

raise_CollectionChanged(object, NotifyCollectionChangedEventArgs)

public void raise_CollectionChanged(object objNotifier, NotifyCollectionChangedEventArgs e)

Parameters

objNotifier object

e NotifyCollectionChangedEventArgs

CollectionChanged

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

NotifyCollectionChangedEventHandler

Connect with Ansys