# Router.IsDefined

Kind: Method  
Namespace: `Sisk.Core.Routing`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Routing.Router.IsDefined.html

## IsDefined(RouteMethod, string) {#Sisk_Core_Routing_Router_IsDefined_Sisk_Core_Routing_RouteMethod_System_String_}

Gets an boolean indicating if there are any route that matches the specified method and route path.

```csharp
public bool IsDefined(RouteMethod method, string path)
```

### Parameters

`method` [RouteMethod](https://docs.sisk-framework.org/api/Sisk.Core.Routing.RouteMethod.md)

The route method.

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

The route path.

### Returns

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