DevicePortal.GetPowerStateAsync(DeviceInfo) Method

Definition

Gets the PowerStateInfo of the target device.

public:
 static System::Threading::Tasks::Task<Microsoft::MixedReality::Toolkit::WindowsDevicePortal::PowerStateInfo ^> ^ GetPowerStateAsync(Microsoft::MixedReality::Toolkit::WindowsDevicePortal::DeviceInfo ^ targetDevice);
public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo> GetPowerStateAsync (Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DeviceInfo targetDevice);
static member GetPowerStateAsync : Microsoft.MixedReality.Toolkit.WindowsDevicePortal.DeviceInfo -> System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.WindowsDevicePortal.PowerStateInfo>
Public Shared Function GetPowerStateAsync (targetDevice As DeviceInfo) As Task(Of PowerStateInfo)

Parameters

targetDevice
DeviceInfo

Returns

Task<PowerStateInfo>

PowerStateInfo

Applies to