Share via


Barometer.GetDefault Method

Definition

Returns the default barometer sensor.

public:
 static Barometer ^ GetDefault();
 static Barometer GetDefault();
public static Barometer GetDefault();
function getDefault()
Public Shared Function GetDefault () As Barometer

Returns

The default barometer.

Remarks

If no barometer sensor is available, this method will return the null pointer.

Applies to