Share via


DevicePlatform.Create(String) Method

Definition

Creates a new device platform instance. This can be used to define your custom platforms.

public:
 static Microsoft::Maui::Devices::DevicePlatform Create(System::String ^ devicePlatform);
public static Microsoft.Maui.Devices.DevicePlatform Create (string devicePlatform);
static member Create : string -> Microsoft.Maui.Devices.DevicePlatform
Public Shared Function Create (devicePlatform As String) As DevicePlatform

Parameters

devicePlatform
String

The device platform identifier.

Returns

A new instance of DevicePlatform with the specified platform identifier.

Applies to