DevicePlatform.Create(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.