# DetectionResult

- Kind: `class`
- Package: [Aspire.TypeSystem](/reference/api/csharp/aspire.typesystem.md)
- Version: `13.4.0`
- Namespace: `Aspire.TypeSystem`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/LanguageModels.cs)

Result of detecting an AppHost in a directory.

## Definition

```csharp
namespace Aspire.TypeSystem;

public sealed class DetectionResult
{
    // ...
}
```

## Constructors

- [DetectionResult](/reference/api/csharp/aspire.typesystem/detectionresult/constructors.md#constructor)

## Properties

- [AppHostFile](/reference/api/csharp/aspire.typesystem/detectionresult/properties.md#apphostfile) : `string?` `get; init` -- Gets the path to the detected AppHost file.
- [IsValid](/reference/api/csharp/aspire.typesystem/detectionresult/properties.md#isvalid) : `bool` `get; init` -- Gets whether a valid AppHost was detected.
- [Language](/reference/api/csharp/aspire.typesystem/detectionresult/properties.md#language) : `string?` `get; init` -- Gets the detected language (e.g., "TypeScript").
- [NotFound](/reference/api/csharp/aspire.typesystem/detectionresult/properties.md#notfound) : [DetectionResult](/reference/api/csharp/aspire.typesystem/detectionresult.md) `static` `get` -- Creates a result indicating no AppHost was detected.

## Methods

- [Found(string, string)](/reference/api/csharp/aspire.typesystem/detectionresult/methods.md#found-string-string) : [DetectionResult](/reference/api/csharp/aspire.typesystem/detectionresult.md) `static` -- Creates a result indicating an AppHost was detected.
