# DetectionResult Properties

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

Result of detecting an AppHost in a directory.

## AppHostFile

- Name: `AppHostFile`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/LanguageModels.cs)

Gets the path to the detected AppHost file.

```csharp
public string? AppHostFile { get; init; }
```

## IsValid

- Name: `IsValid`
- Modifiers: `get; init`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/LanguageModels.cs)

Gets whether a valid AppHost was detected.

```csharp
public bool IsValid { get; init; }
```

## Language

- Name: `Language`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.TypeSystem/LanguageModels.cs)

Gets the detected language (e.g., "TypeScript").

```csharp
public string? Language { get; init; }
```

## NotFound

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

Creates a result indicating no AppHost was detected.

```csharp
public static DetectionResult NotFound { get; }
```
