# PowerShellRunspacePoolResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Type: [PowerShellRunspacePoolResource](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellrunspacepoolresource.md)
- Kind: `Properties`
- Members: `4`

Represents a PowerShell runspace pool resource.

## LanguageMode

- Name: `LanguageMode`
- Modifiers: `get`
- Returns: `PSLanguageMode`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResource.cs#L24)

Specifies the language mode for the PowerShell runspace pool.

```csharp
public PSLanguageMode LanguageMode { get; }
```

## MaxRunspaces

- Name: `MaxRunspaces`
- Modifiers: `get`
- Returns: `int`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResource.cs#L34)

Specifies the maximum number of runspaces in the pool.

```csharp
public int MaxRunspaces { get; }
```

## MinRunspaces

- Name: `MinRunspaces`
- Modifiers: `get`
- Returns: `int`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResource.cs#L29)

Specifies the minimum number of runspaces in the pool.

```csharp
public int MinRunspaces { get; }
```

## Pool

- Name: `Pool`
- Modifiers: `nullable` `get`
- Returns: `RunspacePool?`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResource.cs)

A reference to the runspace pool created by this resource.

```csharp
public RunspacePool? Pool { get; }
```
