> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/reactor/api-reference/ks.reactor/ks.reactor.kspropertymap.md).

# Class ksPropertyMap

Namespace: [KS.Reactor](/reactor/api-reference/ks.reactor.md)\
Assembly: KSCommon.dll

Provides access to ksProperties.

```csharp
public class ksPropertyMap : IEnumerable<KeyValuePair<uint, ksMultiType>>, IEnumerable
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) â† [ksPropertyMap](/reactor/api-reference/ks.reactor/ks.reactor.kspropertymap.md)

#### Implements

[IEnumerable\<KeyValuePair\<uint, ksMultiType>>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Properties

### Keys <a href="#ks_reactor_kspropertymap_keys" id="ks_reactor_kspropertymap_keys"></a>

Collection of property keys.

```csharp
public Dictionary<uint, ksMultiType>.KeyCollection Keys { get; }
```

#### Property Value

[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)<[uint](https://learn.microsoft.com/dotnet/api/system.uint32), [ksMultiType](/reactor/api-reference/ks.reactor/ks.reactor.ksmultitype.md)>.[KeyCollection](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2.keycollection)

### this\[uint] <a href="#ks_reactor_kspropertymap_item_system_uint32" id="ks_reactor_kspropertymap_item_system_uint32"></a>

Gets/Sets the value of a property. If a property id is not in the map, [Null](/reactor/api-reference/ks.reactor/ks.reactor.ksmultitype.md#KS_Reactor_ksMultiType_Null) is returned.

```csharp
public ksMultiType this[uint propertyId] { get; set; }
```

#### Property Value

[ksMultiType](/reactor/api-reference/ks.reactor/ks.reactor.ksmultitype.md)

## Methods

### Contains(uint) <a href="#ks_reactor_kspropertymap_contains_system_uint32" id="ks_reactor_kspropertymap_contains_system_uint32"></a>

Checks if a property id is in the map.

```csharp
public bool Contains(uint propertyId)
```

#### Parameters

`propertyId` [uint](https://learn.microsoft.com/dotnet/api/system.uint32)

Property ID to check for.

#### Returns

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

True if the property id is in the map.

### GetEnumerator() <a href="#ks_reactor_kspropertymap_getenumerator" id="ks_reactor_kspropertymap_getenumerator"></a>

Gets the property enumerator.

```csharp
public IEnumerator<KeyValuePair<uint, ksMultiType>> 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)<[uint](https://learn.microsoft.com/dotnet/api/system.uint32), [ksMultiType](/reactor/api-reference/ks.reactor/ks.reactor.ksmultitype.md)>>
