# ProjectLaunchArgsOverrideAnnotation Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ProjectLaunchArgsOverrideAnnotation](/reference/api/csharp/aspire.hosting/projectlaunchargsoverrideannotation.md)
- Kind: `Properties`
- Members: `2`

Represents an annotation that overrides the default project launch arguments generated by DCP for a [ProjectResource](/reference/api/csharp/aspire.hosting/projectresource.md).

<a id="arguments"></a>

## Arguments

- Name: `Arguments`
- Modifiers: `get`
- Returns: `IReadOnlyList<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/ApplicationModel/ProjectLaunchArgsOverrideAnnotation.cs#L42)

Gets the custom launch arguments to use instead of the default project args.

```csharp
public IReadOnlyList<string> Arguments { get; }
```

<a id="leadingresourceargumenttoremove"></a>

## LeadingResourceArgumentToRemove

- Name: `LeadingResourceArgumentToRemove`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/ApplicationModel/ProjectLaunchArgsOverrideAnnotation.cs#L47)

Gets the optional first resource argument to omit from the final launch arguments when it is already represented by [ProjectLaunchArgsOverrideAnnotation.Arguments](/reference/api/csharp/aspire.hosting/projectlaunchargsoverrideannotation/properties.md#arguments).

```csharp
public string? LeadingResourceArgumentToRemove { get; }
```
