# DaprComponentOptions

- Kind: `record`
- Package: [CommunityToolkit.Aspire.Hosting.Dapr](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr.md)
- Version: `13.0.0`
- Namespace: `CommunityToolkit.Aspire.Hosting.Dapr`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/30a4b632065206d447183d2baabf6dfb3678d4af/src/CommunityToolkit.Aspire.Hosting.Dapr/DaprComponentOptions.cs)
- Implements: `IEquatable<DaprComponentOptions>`

Options for configuring a Dapr component.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Hosting.Dapr;

public sealed record DaprComponentOptions
    : System.IEquatable<CommunityToolkit.Aspire.Hosting.Dapr.DaprComponentOptions>
{
    // ...
}
```

## Constructors

- [DaprComponentOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/constructors.md#constructor)

## Properties

- [LocalPath](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/properties.md#localpath) : `string?` `get; init` -- Gets or sets the path to the component configuration file.

## Methods

- [<Clone>$](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#clone) : [DaprComponentOptions](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions.md)
- [Equals(object?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(DaprComponentOptions?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#equals-daprcomponentoptions) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(DaprComponentOptions?, DaprComponentOptions?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#op-equality-daprcomponentoptions-daprcomponentoptions) : `bool` `static`
- [op_Inequality(DaprComponentOptions?, DaprComponentOptions?)](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#op-inequality-daprcomponentoptions-daprcomponentoptions) : `bool` `static`
- [ToString](/reference/api/csharp/communitytoolkit.aspire.hosting.dapr/daprcomponentoptions/methods.md#tostring) : `string` -- Returns a string that represents the current object.
