DevicePlatform.Create(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建新的设备平台实例。 这可用于定义自定义平台。
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
参数
- devicePlatform
- String
设备平台标识符。
返回
具有指定平台标识符的新实例 DevicePlatform 。