次の方法で共有


Device.OS Property

Definition

Caution

TargetPlatform is obsolete as of version 2.3.4. Please use RuntimePlatform instead.

Gets the TargetPlatform indicating the OS Xamarin.Forms is working on.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("TargetPlatform is obsolete as of version 2.3.4. Please use RuntimePlatform instead.")]
public static Xamarin.Forms.TargetPlatform OS { get; }
member this.OS : Xamarin.Forms.TargetPlatform

Property Value

A TargetPlatform that indicates the current OS.

Attributes
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

Applies to