SecondaryAuthenticationFactorRegistration.IsDevicePresenceMonitoringSupported Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deprecated. Checks whether the main device is able to monitor for the presence of companion devices.
Note
This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft to use the secondaryAuthenticationFactor capability, calls to this API will fail. To apply for approval, contact cdfonboard@microsoft.com. For more information on capabilities, see App capability declarations. For an overview of the Companion Device Framework, see the Windows Unlock with companion (IoT) devices overview.
public:
static bool IsDevicePresenceMonitoringSupported();
static bool IsDevicePresenceMonitoringSupported();
/// [Windows.Foundation.Metadata.Deprecated("IsDevicePresenceMonitoringSupported is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.Foundation.UniversalApiContract")]
static bool IsDevicePresenceMonitoringSupported();
public static bool IsDevicePresenceMonitoringSupported();
[Windows.Foundation.Metadata.Deprecated("IsDevicePresenceMonitoringSupported is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 458752, "Windows.Foundation.UniversalApiContract")]
public static bool IsDevicePresenceMonitoringSupported();
function isDevicePresenceMonitoringSupported()
Public Shared Function IsDevicePresenceMonitoringSupported () As Boolean
Returns
bool
A value of true if the device can monitor companion devices, otherwise false.
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|