public DeviceInfo Query(Guid deviceId) { if (!Devices.IsValidId(deviceId)) { throw new ArgumentException("The specified ID does not match any of the valid IDs.", nameof(deviceId)); } return(NativeWrapper.QueryDevice(deviceId)); }
/// <summary> /// Queries the SDK for information regarding a specific device. /// </summary> /// <param name="deviceId">The device ID to query for, valid IDs can be found in <see cref="Devices" />.</param> /// <returns>A struct with information regarding the device type and whether it's connected.</returns> public DeviceInfo Query(Guid deviceId) { if (!Devices.IsValidId(deviceId)) { throw new ArgumentException("The specified ID does not match any of the valid IDs.", "deviceId"); } Log.DebugFormat("Information for {0} requested", deviceId); return(NativeWrapper.QueryDevice(deviceId)); }