# RoleDefinition Constructors

- Package: [Aspire.Hosting.Azure](/reference/api/csharp/aspire.hosting.azure.md)
- Type: [RoleDefinition](/reference/api/csharp/aspire.hosting.azure/roledefinition.md)
- Kind: `Constructors`
- Members: `1`

Represents a role definition within an Azure resource.

## RoleDefinition(string, string)

- Name: `Constructor(string, string)`

Represents a role definition within an Azure resource.

```csharp
public struct RoleDefinition
{
    public RoleDefinition(
        string Id,
        string Name)
    {
        // ...
    }
}
```

## Parameters

- `Id` (`string`)
  The unique identifier for the role definition.
- `Name` (`string`)
  The name of the role definition.
