DisplayProperties.NativeOrientation Properti

Definisi

Catatan

DisplayProperties dapat diubah atau tidak tersedia untuk rilis setelah Windows 8.1. Sebagai gantinya, gunakan DisplayInformation.

Mendapatkan orientasi asli monitor tampilan, yang biasanya merupakan orientasi di mana tombol pada perangkat cocok dengan orientasi monitor.

public:
 static property DisplayOrientations NativeOrientation { DisplayOrientations get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static DisplayOrientations NativeOrientation();
/// [get: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static DisplayOrientations NativeOrientation();
public static DisplayOrientations NativeOrientation { [Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static DisplayOrientations NativeOrientation { [Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var displayOrientations = DisplayProperties.nativeOrientation;
Public Shared ReadOnly Property NativeOrientation As DisplayOrientations

Nilai Properti

Orientasi asli monitor tampilan.

Atribut

Berlaku untuk