# NgrokEndpointAnnotation Methods

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

Represents a ngrok endpoint annotation for an existing resource with endpoints.

## <Clone>$

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

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

## Deconstruct(IResourceWithEndpoints)

- Name: `Deconstruct(IResourceWithEndpoints)`

```csharp
public record NgrokEndpointAnnotation
{
    public void Deconstruct(
        out IResourceWithEndpoints Resource)
    {
        // ...
    }
}
```

## Parameters

- `Resource` (`IResourceWithEndpoints`)

## Equals(object?)

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

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

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

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

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

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

## Parameters

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

## Returns

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

## op_Equality(NgrokEndpointAnnotation?, NgrokEndpointAnnotation?)

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

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

## Parameters

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

## op_Inequality(NgrokEndpointAnnotation?, NgrokEndpointAnnotation?)

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

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

## Parameters

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

## ToString

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

Returns a string that represents the current object.

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

## Returns

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