# RequiredCommandValidationResult Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [RequiredCommandValidationResult](/reference/api/csharp/aspire.hosting/requiredcommandvalidationresult.md)
- Kind: `Properties`
- Members: `2`

Represents the result of validating a required command.

## IsValid

- Name: `IsValid`
- Modifiers: `get`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/RequiredCommandValidationResult.cs#L29)

Gets a value indicating whether the command validation succeeded.

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

## ValidationMessage

- Name: `ValidationMessage`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/RequiredCommandValidationResult.cs#L34)

Gets an optional validation message describing why validation failed.

```csharp
public string? ValidationMessage { get; }
```
