# NgrokEndpoint Methods

- Package: [CommunityToolkit.Aspire.Hosting.Ngrok](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok.md)
- Type: [NgrokEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md)
- Kind: `Methods`
- Members: `8`

Describes a ngrok endpoint.

## <Clone>$

- Name: `<Clone>$`
- Returns: [NgrokEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md)

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

## Deconstruct(string, string?, IDictionary<string, string>)

- Name: `Deconstruct(string, string?, IDictionary<string, string>)`

```csharp
public record NgrokEndpoint
{
    public void Deconstruct(
        out string EndpointName,
        out string? Url,
        out IDictionary<string, string>? Labels)
    {
        // ...
    }
}
```

## Parameters

- `EndpointName` (`string`)
- `Url` (`string?`)
- `Labels` (`IDictionary<string, string>`)

## Equals(object?)

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

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

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

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

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

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

## Parameters

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

## Returns

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

## op_Equality(NgrokEndpoint?, NgrokEndpoint?)

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

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

## Parameters

- `left` ([NgrokEndpoint?](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md))
- `right` ([NgrokEndpoint?](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md))

## op_Inequality(NgrokEndpoint?, NgrokEndpoint?)

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

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

## Parameters

- `left` ([NgrokEndpoint?](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md))
- `right` ([NgrokEndpoint?](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md))

## ToString

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

Returns a string that represents the current object.

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

## Returns

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