# DaprComponentOptions Methods

- Package: [CommunityToolkit.Aspire.Hosting.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr.md)
- Type: [DaprComponentOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md)
- Kind: `Methods`
- Members: `7`

Options for configuring a Dapr component.

## <Clone>$

- Name: `<Clone>$`
- Returns: [DaprComponentOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md)

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

## Equals(object?)

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

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

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

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

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

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

## Parameters

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

## Returns

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

## op_Equality(DaprComponentOptions?, DaprComponentOptions?)

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

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

## Parameters

- `left` ([DaprComponentOptions?](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md))
- `right` ([DaprComponentOptions?](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md))

## op_Inequality(DaprComponentOptions?, DaprComponentOptions?)

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

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

## Parameters

- `left` ([DaprComponentOptions?](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md))
- `right` ([DaprComponentOptions?](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md))

## ToString

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

Returns a string that represents the current object.

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

## Returns

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