# LogLine Methods

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [LogLine](/reference/api/csharp/aspire.hosting/logline.md)
- Kind: `Methods`
- Members: `7`

Represents a console log line.

## Deconstruct(int, string, bool)

- Name: `Deconstruct(int, string, bool)`

```csharp
public struct LogLine
{
    public void Deconstruct(
        out int LineNumber,
        out string Content,
        out bool IsErrorMessage)
    {
        // ...
    }
}
```

## Parameters

- `LineNumber` (`int`)
- `Content` (`string`)
- `IsErrorMessage` (`bool`)

## Equals(object)

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

Indicates whether this instance and a specified object are equal.

```csharp
public struct LogLine
{
    public override bool Equals(
        object obj)
    {
        // ...
    }
}
```

## Parameters

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

## Returns

`bool` -- `true` if `obj` and this instance are the same type and represent the same value; otherwise, `false`.

## Equals(LogLine)

- Name: `Equals(LogLine)`
- Returns: `bool`

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

```csharp
public struct LogLine
{
    public bool Equals(
        LogLine other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([LogLine](/reference/api/csharp/aspire.hosting/logline.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`

Returns the hash code for this instance.

```csharp
public struct LogLine
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

`int` -- A 32-bit signed integer that is the hash code for this instance.

## op_Equality(LogLine, LogLine)

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

```csharp
public struct LogLine
{
    public static bool operator ==(
        LogLine left,
        LogLine right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([LogLine](/reference/api/csharp/aspire.hosting/logline.md))
- `right` ([LogLine](/reference/api/csharp/aspire.hosting/logline.md))

## op_Inequality(LogLine, LogLine)

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

```csharp
public struct LogLine
{
    public static bool operator !=(
        LogLine left,
        LogLine right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([LogLine](/reference/api/csharp/aspire.hosting/logline.md))
- `right` ([LogLine](/reference/api/csharp/aspire.hosting/logline.md))

## ToString

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

Returns the fully qualified type name of this instance.

```csharp
public struct LogLine
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- The fully qualified type name.
