# DetectionResult Methods

- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Type: [DetectionResult](/reference/api/csharp/aspire.typesystem/detectionresult.md)
- Kind: `Methods`
- Members: `1`

Result of detecting an AppHost in a directory.

## Found(string, string)

- Name: `Found(string, string)`
- Modifiers: `static`
- Returns: [DetectionResult](/reference/api/csharp/aspire.typesystem/detectionresult.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/LanguageModels.cs#L55-L60)

Creates a result indicating an AppHost was detected.

```csharp
public sealed class DetectionResult
{
    public static DetectionResult Found(
        string language,
        string appHostFile)
    {
        // ...
    }
}
```

## Parameters

- `language` (`string`)
- `appHostFile` (`string`)
