# PostaEndpoint Methods

- Package: [CommunityToolkit.Aspire.Posta](/reference/api/csharp/communitytoolkit.aspire.posta.md)
- Type: [PostaEndpoint](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md)
- Kind: `Methods`
- Members: `8`

Describes a Posta API operation.

<a id="clone"></a>

## <Clone>$

- Name: `<Clone>$`
- Returns: [PostaEndpoint](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md)

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

<a id="deconstruct"></a>
<a id="deconstruct-httpmethod-string-postaauthentication-bool-string"></a>

## Deconstruct(HttpMethod, string, PostaAuthentication, bool, string?)

- Name: `Deconstruct(HttpMethod, string, PostaAuthentication, bool, string?)`

```csharp
public record PostaEndpoint
{
    public void Deconstruct(
        out HttpMethod Method,
        out string Path,
        out PostaAuthentication Authentication,
        out bool IsImplemented,
        out string? Documentation)
    {
        // ...
    }
}
```

## Parameters

- `Method` (`HttpMethod`)
- `Path` (`string`)
- `Authentication` ([PostaAuthentication](/reference/api/csharp/communitytoolkit.aspire.posta/postaauthentication.md))
- `IsImplemented` (`bool`)
- `Documentation` (`string?`)

<a id="equals"></a>
<a id="equals-object"></a>

## Equals(object?)

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

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

```csharp
public record PostaEndpoint
{
    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`.

<a id="equals-postaendpoint"></a>

## Equals(PostaEndpoint?)

- Name: `Equals(PostaEndpoint?)`
- Returns: `bool`

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

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

## Parameters

- `other` ([PostaEndpoint?](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md))
  An object to compare with this object.

## Returns

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

<a id="gethashcode"></a>

## GetHashCode

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

Serves as the default hash function.

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

## Returns

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

<a id="op-equality"></a>
<a id="op-equality-postaendpoint-postaendpoint"></a>

## op_Equality(PostaEndpoint?, PostaEndpoint?)

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

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

## Parameters

- `left` ([PostaEndpoint?](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md))
- `right` ([PostaEndpoint?](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md))

<a id="op-inequality"></a>
<a id="op-inequality-postaendpoint-postaendpoint"></a>

## op_Inequality(PostaEndpoint?, PostaEndpoint?)

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

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

## Parameters

- `left` ([PostaEndpoint?](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md))
- `right` ([PostaEndpoint?](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md))

<a id="tostring"></a>

## ToString

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

Returns a string that represents the current object.

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

## Returns

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