DevicePlatform.macOS 属性

定义

获取表示 macOS 的 DevicePlatform 实例。

public:
 static property Microsoft::Maui::Devices::DevicePlatform macOS { Microsoft::Maui::Devices::DevicePlatform get(); };
public static Microsoft.Maui.Devices.DevicePlatform macOS { get; }
static member macOS : Microsoft.Maui.Devices.DevicePlatform
Public Shared ReadOnly Property macOS As DevicePlatform

属性值

注解

请注意,这与 MacCatalyst不同。

适用于