# PowerShellScriptArgsAnnotation

- Kind: `record`
- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Version: `13.4.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.PowerShell`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.PowerShell/PowerShellScriptResourceBuilderExtensions.cs)
- Implements: `IResourceAnnotation`, `IEquatable<PowerShellScriptArgsAnnotation>`

Represents the arguments for a PowerShell script resource.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.PowerShell;

public record PowerShellScriptArgsAnnotation
    : Aspire.Hosting.ApplicationModel.IResourceAnnotation,
      System.IEquatable<CommunityToolkit.Aspire.Hosting.PowerShell.PowerShellScriptArgsAnnotation>
{
    // ...
}
```

## Constructors

- [PowerShellScriptArgsAnnotation(object[])](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/constructors.md#constructor-object) -- Represents the arguments for a PowerShell script resource.

## Properties

- [Args](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/properties.md#args) : `object[]` `get; init`

## Methods

- [<Clone>$](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#clone) : [PowerShellScriptArgsAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md) `virtual`
- [Deconstruct(object[])](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#deconstruct-object)
- [Equals(object?)](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(PowerShellScriptArgsAnnotation?)](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#equals-powershellscriptargsannotation) : `bool` `virtual` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(PowerShellScriptArgsAnnotation?, PowerShellScriptArgsAnnotation?)](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#op-equality-powershellscriptargsannotation-powershellscriptargsannotation) : `bool` `static`
- [op_Inequality(PowerShellScriptArgsAnnotation?, PowerShellScriptArgsAnnotation?)](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#op-inequality-powershellscriptargsannotation-powershellscriptargsannotation) : `bool` `static`
- [ToString](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation/methods.md#tostring) : `string` -- Returns a string that represents the current object.
