# NodeAttributeCollection.Add

Kind: Method  
Namespace: `TinyComponents`  
Assembly: `TinyComponents.dll`  
Source: https://docs.sisk-framework.org/api/TinyComponents.NodeAttributeCollection.Add.html

## Add(string, object?) {#TinyComponents_NodeAttributeCollection_Add_System_String_System_Object_}

```csharp
public void Add(string key, object? value)
```

### Parameters

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

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

## Add(KeyValuePair&lt;string, object?>) {#TinyComponents_NodeAttributeCollection_Add_System_Collections_Generic_KeyValuePair_System_String_System_Object__}

```csharp
public void Add(KeyValuePair<string, object?> item)
```

### Parameters

`item` [KeyValuePair](https://learn.microsoft.com/dotnet/api/system.collections.generic.keyvaluepair\-2)<[string](https://learn.microsoft.com/dotnet/api/system.string), [object](https://learn.microsoft.com/dotnet/api/system.object)?\>
