# AzureDaprComponentPublishingAnnotation Methods

- Package: [CommunityToolkit.Aspire.Hosting.Azure.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr.md)
- Type: [AzureDaprComponentPublishingAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md)
- Kind: `Methods`
- Members: `8`

Represents an annotation that defines a publishing action for Azure Dapr components.

## <Clone>$

- Name: `<Clone>$`
- Modifiers: `virtual`
- Returns: [AzureDaprComponentPublishingAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md)

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

## Deconstruct(Action<AzureResourceInfrastructure>)

- Name: `Deconstruct(Action<AzureResourceInfrastructure>)`

```csharp
public record AzureDaprComponentPublishingAnnotation
{
    public void Deconstruct(
        out Action<AzureResourceInfrastructure> PublishingAction)
    {
        // ...
    }
}
```

## Parameters

- `PublishingAction` (`Action<AzureResourceInfrastructure>`)

## Equals(object?)

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

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

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

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

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

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

## Parameters

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

## Returns

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

## op_Equality(AzureDaprComponentPublishingAnnotation?, AzureDaprComponentPublishingAnnotation?)

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

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

## Parameters

- `left` ([AzureDaprComponentPublishingAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md))
- `right` ([AzureDaprComponentPublishingAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md))

## op_Inequality(AzureDaprComponentPublishingAnnotation?, AzureDaprComponentPublishingAnnotation?)

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

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

## Parameters

- `left` ([AzureDaprComponentPublishingAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md))
- `right` ([AzureDaprComponentPublishingAnnotation?](/reference/api/csharp/communitytoolkit.aspire.hosting.azure.dapr/azuredaprcomponentpublishingannotation.md))

## ToString

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

Returns a string that represents the current object.

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

## Returns

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