# PowerShellVariableReferenceAnnotation<T> Constructors

- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Type: [PowerShellVariableReferenceAnnotation<T>](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellvariablereferenceannotation-1.md)
- Kind: `Constructors`
- Members: `1`

Represents a PowerShell variable reference annotation.

## PowerShellVariableReferenceAnnotation(string, T)

- Name: `Constructor(string, T)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellRunspacePoolResourceBuilderExtensions.cs#L146)

Represents a PowerShell variable reference annotation.

```csharp
public record PowerShellVariableReferenceAnnotation<T>
{
    public PowerShellVariableReferenceAnnotation(
        string Name,
        T Value)
    {
        // ...
    }
}
```

## Parameters

- `Name` (`string`)
- `Value` (`T`)
