# MauiiOSDeviceResource Constructors

- Package: [Aspire.Hosting.Maui](/reference/api/csharp/aspire.hosting.maui.md)
- Type: [MauiiOSDeviceResource](/reference/api/csharp/aspire.hosting.maui/mauiiosdeviceresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents an iOS physical device for running a .NET MAUI application.

## MauiiOSDeviceResource(string, MauiProjectResource)

- Name: `Constructor(string, MauiProjectResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Maui/MauiiOSDeviceResource.cs#L14-L19)

A resource that represents an iOS physical device for running a .NET MAUI application.

```csharp
public sealed class MauiiOSDeviceResource
{
    public MauiiOSDeviceResource(
        string name,
        MauiProjectResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the iOS device resource.
- `parent` ([MauiProjectResource](/reference/api/csharp/aspire.hosting.maui/mauiprojectresource.md))
  The parent MAUI project resource.
