# RunProcessAndCaptureStdOutResult Methods

- Package: [Aspire.Hosting.AWS](/reference/api/csharp/aspire.hosting.aws.md)
- Type: [RunProcessAndCaptureStdOutResult](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.md)
- Kind: `Methods`
- Members: `8`

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

## <Clone>$

- Name: `<Clone>$`
- Modifiers: `virtual`
- Returns: [RunProcessAndCaptureStdOutResult](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.md)

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

## Deconstruct(int, string)

- Name: `Deconstruct(int, string)`

```csharp
public record RunProcessAndCaptureStdOutResult
{
    public void Deconstruct(
        out int ExitCode,
        out string Output)
    {
        // ...
    }
}
```

## Parameters

- `ExitCode` (`int`)
- `Output` (`string`)

## Equals(object?)

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

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

```csharp
public record RunProcessAndCaptureStdOutResult
{
    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(RunProcessAndCaptureStdOutResult?)

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

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

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

## Parameters

- `other` ([RunProcessAndCaptureStdOutResult?](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.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 RunProcessAndCaptureStdOutResult
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

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

## op_Equality(RunProcessAndCaptureStdOutResult?, RunProcessAndCaptureStdOutResult?)

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

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

## Parameters

- `left` ([RunProcessAndCaptureStdOutResult?](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.md))
- `right` ([RunProcessAndCaptureStdOutResult?](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.md))

## op_Inequality(RunProcessAndCaptureStdOutResult?, RunProcessAndCaptureStdOutResult?)

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

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

## Parameters

- `left` ([RunProcessAndCaptureStdOutResult?](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.md))
- `right` ([RunProcessAndCaptureStdOutResult?](/reference/api/csharp/aspire.hosting.aws/runprocessandcapturestdoutresult.md))

## ToString

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

Returns a string that represents the current object.

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

## Returns

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