    

 ## On this page

  

 

 # Class SimulationConfigurationExtraCollection

 Last update: 16.07.2025 

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

This class is to represent the extra simulation configuration collection.

```csharp
[Obsolete]
public class SimulationConfigurationExtraCollection : LinkContainer, IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← ObservableObject ← LinkableBase ← LinkContainer ← [SimulationConfigurationExtraCollection](VM.Managed.SimulationConfigurationExtraCollection.md)

#### Implements

IObservableObject, IDisposableObject, ILinkable, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, ILinkContainerEvent, IVerifiable

#### Inherited Members

LinkContainer.SetModified(), LinkContainer.raise\_OnUpdating(object, LinkEventArgs), LinkContainer.raise\_OnUpdate(object, LinkEventArgs), LinkContainer.raise\_OnDestroying(object, LinkEventArgs), LinkContainer.raise\_OnDestroy(object, LinkEventArgs), LinkContainer.raise\_OnAdded(object, AddToDocEventArgs), LinkContainer.raise\_OnRemoved(object, RemoveFromDocEventArgs), LinkContainer.GetTargetListForUpdate(), LinkContainer.SkipUpdateObjectImpl(), LinkContainer.Initialize(Unit.ConvertFactor), LinkContainer.SetFlagWhenXMLFile(string, bool), LinkContainer.IsSerializableEvent(Delegate), LinkContainer.CustomGetObjectData(SerializationInfo, StreamingContext), LinkContainer.GetSerializedData(SerializationInfo, StreamingContext), LinkContainer.LinkRequestUpdating(object, LinkEventArgs), LinkContainer.LinkRequestUpdate(object, LinkEventArgs), LinkContainer.LinkRequestDestroying(object, LinkEventArgs), LinkContainer.LinkRequestDestroy(object, LinkEventArgs), LinkContainer.LinkAddedToDocument(object, AddToDocEventArgs), LinkContainer.LinkRemovedFromDocument(object, RemoveFromDocEventArgs), LinkContainer.OnLinkReserved(ILink, object, EventArgs), LinkContainer.CanBeDestroy(object), LinkContainer.DisposeManagedResources(), LinkContainer.SetContainer(IOwned, bool), LinkContainer.OnChildUpdated(object, LinkEventArgs), LinkContainer.OnContainerDestroy(object, LinkEventArgs), LinkContainer.OnDeserialization(object), LinkContainer.Verify(VerifiedResult), LinkContainer.GetCopy(object), LinkContainer.Dispose(bool), LinkContainer.ClearChildInfoBeforeDeserialize, LinkContainer.Container, LinkContainer.Owner, LinkContainer.Document, LinkContainer.ID, LinkContainer.IsChildExternable, LinkContainer.IsExternable, LinkContainer.OnRemoved, LinkContainer.OnAdded, LinkContainer.OnDestroy, LinkContainer.OnDestroying, LinkContainer.OnUpdate, LinkContainer.OnUpdating, LinkableBase.OnDeserialization(object), ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged

#### 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(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Managed_SimulationConfigurationExtraCollection__ctor"></a> SimulationConfigurationExtraCollection()

Initializes a new instance of the  class.

```csharp
public SimulationConfigurationExtraCollection()

```

## Properties

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Count"></a> Count

Gets the number of elements contained in the .

```csharp
public virtual int Count { get; }

```

#### Property Value

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

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Keys"></a> Keys

Gets an  containing the keys of the .

```csharp
public virtual ICollection<string> Keys { get; }

```

#### Property Value

[ICollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)[string](https://learn.microsoft.com/dotnet/api/system.string)&amp;gt;

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Values"></a> Values

Gets an  containing the values in the .

```csharp
public virtual ICollection<simulationconfigurationextrabase> Values { get; }

```

#### Property Value

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

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Item_System_String_"></a> this\[string\]

Gets or sets the  with the specified key.

```csharp
public virtual SimulationConfigurationExtraBase this[string strKey] { get; set; }

```

#### Property Value

[SimulationConfigurationExtraBase](VM.Managed.SimulationConfigurationExtraBase.md)

## Methods

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Add_System_String_VM_Managed_SimulationConfigurationExtraBase_"></a> Add(string, SimulationConfigurationExtraBase)

Adds an element with the provided key and value to the .

```csharp
public virtual void Add(string key, SimulationConfigurationExtraBase value)

```

#### Parameters

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

The object to use as the key of the element to add.

`value` [SimulationConfigurationExtraBase](VM.Managed.SimulationConfigurationExtraBase.md)

The object to use as the value of the element to add.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`key` is null.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

An element with the same key already exists in the .

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The  is read-only.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Clear"></a> Clear()

Removes all items from the .

```csharp
public virtual void Clear()

```

#### Exceptions

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The  is read-only.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_ContainsKey_System_String_"></a> ContainsKey(string)

Determines whether the  contains an element with the specified key.

```csharp
public virtual bool ContainsKey(string key)

```

#### Parameters

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

The key to locate in the .

#### Returns

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

true if the  contains an element with the key; otherwise, false.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`key` is null.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_GetEnumerator"></a> GetEnumerator()

Returns an enumerator that iterates through the collection.

```csharp
public virtual IEnumerator<keyvaluepair><string simulationconfigurationextrabase>&gt; GetEnumerator()

```

#### Returns

[IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1)[KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair-2)[string](https://learn.microsoft.com/dotnet/api/system.string), [SimulationConfigurationExtraBase](VM.Managed.SimulationConfigurationExtraBase.md)&amp;gt;&amp;gt;

A  that can be used to iterate through the collection.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_GetSchema"></a> GetSchema()

This method is reserved and should not be used. When implementing the IXmlSerializable interface, you should return null (Nothing in Visual Basic) from this method, and instead, if specifying a custom schema is required, apply the  to the class.

```csharp
public virtual XmlSchema GetSchema()

```

#### Returns

[XmlSchema](https://learn.microsoft.com/dotnet/api/system.xml.schema.xmlschema)

An  that describes the XML representation of the object that is produced by the  method and consumed by the  method.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_ReadXml_System_Xml_XmlReader_"></a> ReadXml(XmlReader)

Generates an object from its XML representation.

```csharp
public virtual void ReadXml(XmlReader reader)

```

#### Parameters

`reader` [XmlReader](https://learn.microsoft.com/dotnet/api/system.xml.xmlreader)

The  stream from which the object is deserialized.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_Remove_System_String_"></a> Remove(string)

Removes the element with the specified key from the .

```csharp
public virtual bool Remove(string key)

```

#### Parameters

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

The key of the element to remove.

#### Returns

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

true if the element is successfully removed; otherwise, false. This method also returns false if `key` was not found in the original .

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`key` is null.

[NotSupportedException](https://learn.microsoft.com/dotnet/api/system.notsupportedexception)

The  is read-only.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_TryGetValue_System_String_VM_Managed_SimulationConfigurationExtraBase__"></a> TryGetValue(string, out SimulationConfigurationExtraBase)

Gets the value associated with the specified key.

```csharp
public virtual bool TryGetValue(string key, out SimulationConfigurationExtraBase value)

```

#### Parameters

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

The key whose value to get.

`value` [SimulationConfigurationExtraBase](VM.Managed.SimulationConfigurationExtraBase.md)

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the `value` parameter. This parameter is passed uninitialized.

#### Returns

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

true if the object that implements  contains an element with the specified key; otherwise, false.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

`key` is null.

### <a id="VM_Managed_SimulationConfigurationExtraCollection_WriteXml_System_Xml_XmlWriter_"></a> WriteXml(XmlWriter)

Converts an object into its XML representation.

```csharp
public virtual void WriteXml(XmlWriter writer)

```

#### Parameters

`writer` [XmlWriter](https://learn.microsoft.com/dotnet/api/system.xml.xmlwriter)

The  stream to which the object is serialized.