# RouteQueryAttribute constructor

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

## RouteQueryAttribute(string) {#Sisk_Core_Routing_RouteQueryAttribute__ctor_System_String_}

Creates an new [RouteQueryAttribute](https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteQueryAttribute.md) attribute instance with given path.

```csharp
public RouteQueryAttribute(string path)
```

### Parameters

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

The QUERY route path.

## RouteQueryAttribute() {#Sisk_Core_Routing_RouteQueryAttribute__ctor}

Creates an new [RouteQueryAttribute](https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteQueryAttribute.md) attribute instance with an root path (/).

```csharp
public RouteQueryAttribute()
```
