# RouteMetadataAttribute constructor

Kind: Constructor  
Namespace: `Sisk.Core.Routing`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteMetadataAttribute.-ctor.html

## RouteMetadataAttribute(string, object?) {#Sisk_Core_Routing_RouteMetadataAttribute__ctor_System_String_System_Object_}

Initializes a new instance of the [RouteMetadataAttribute](https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteMetadataAttribute.md) class with the specified key and value.

```csharp
public RouteMetadataAttribute(string key, object? value = null)
```

### Parameters

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

The key for the metadata.

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

The value for the metadata. Defaults to [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if not provided.
