# PowerShellScriptArgsAnnotation Methods

- Package: [CommunityToolkit.Aspire.Hosting.PowerShell](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell.md)
- Type: [PowerShellScriptArgsAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md)
- Kind: `Methods`
- Members: `8`

Represents the arguments for a PowerShell script resource.

## <Clone>$

- Name: `<Clone>$`
- Modifiers: `virtual`
- Returns: [PowerShellScriptArgsAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md)

```csharp
public record PowerShellScriptArgsAnnotation
{
    public virtual PowerShellScriptArgsAnnotation <Clone>$()
    {
        // ...
    }
}
```

## Deconstruct(object[])

- Name: `Deconstruct(object[])`

```csharp
public record PowerShellScriptArgsAnnotation
{
    public void Deconstruct(
        out object[] Args)
    {
        // ...
    }
}
```

## Parameters

- `Args` (`object[]`)

## Equals(object?)

- Name: `Equals(object?)`
- Modifiers: `override`
- Returns: `bool`

Determines whether the specified object is equal to the current object.

```csharp
public record PowerShellScriptArgsAnnotation
{
    public override bool Equals(
        object? obj)
    {
        // ...
    }
}
```

## Parameters

- `obj` (`object?`)
  The object to compare with the current object.

## Returns

`bool` -- `true` if the specified object is equal to the current object; otherwise, `false`.

## Equals(PowerShellScriptArgsAnnotation?)

- Name: `Equals(PowerShellScriptArgsAnnotation?)`
- Modifiers: `virtual`
- Returns: `bool`

Indicates whether the current object is equal to another object of the same type.

```csharp
public record PowerShellScriptArgsAnnotation
{
    public virtual bool Equals(
        PowerShellScriptArgsAnnotation? other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([PowerShellScriptArgsAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md))
  An object to compare with this object.

## Returns

`bool` -- `true` if the current object is equal to the `other` parameter; otherwise, `false`.

## GetHashCode

- Name: `GetHashCode`
- Modifiers: `override`
- Returns: `int`

Serves as the default hash function.

```csharp
public record PowerShellScriptArgsAnnotation
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

`int` -- A hash code for the current object.

## op_Equality(PowerShellScriptArgsAnnotation?, PowerShellScriptArgsAnnotation?)

- Name: `op_Equality(PowerShellScriptArgsAnnotation?, PowerShellScriptArgsAnnotation?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record PowerShellScriptArgsAnnotation
{
    public static bool operator ==(
        PowerShellScriptArgsAnnotation? left,
        PowerShellScriptArgsAnnotation? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([PowerShellScriptArgsAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md))
- `right` ([PowerShellScriptArgsAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md))

## op_Inequality(PowerShellScriptArgsAnnotation?, PowerShellScriptArgsAnnotation?)

- Name: `op_Inequality(PowerShellScriptArgsAnnotation?, PowerShellScriptArgsAnnotation?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record PowerShellScriptArgsAnnotation
{
    public static bool operator !=(
        PowerShellScriptArgsAnnotation? left,
        PowerShellScriptArgsAnnotation? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([PowerShellScriptArgsAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md))
- `right` ([PowerShellScriptArgsAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.powershell/powershellscriptargsannotation.md))

## ToString

- Name: `ToString`
- Modifiers: `override`
- Returns: `string`

Returns a string that represents the current object.

```csharp
public record PowerShellScriptArgsAnnotation
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- A string that represents the current object.
