Dela via


HotspotAuthenticationContext.AbortAuthentication(Boolean) Method

Definition

Aborts the current authentication attempt and disconnects the WLAN interface from the hotspot.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Microsoft Store, then you'll need special approval. For more information, see the Restricted capabilities section in the App capability declarations topic.

public:
 virtual void AbortAuthentication(bool markAsManual) = AbortAuthentication;
void AbortAuthentication(bool const& markAsManual);
public void AbortAuthentication(bool markAsManual);
function abortAuthentication(markAsManual)
Public Sub AbortAuthentication (markAsManual As Boolean)

Parameters

markAsManual
Boolean

bool

If true, Windows disables the auto-connect property for the corresponding WLAN profile and avoids future auto-connects to this hotspot. Otherwise, false.

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

AbortAuthentication should be called when authentication credentials can not be provided through IssueCredentials. Once AbortAuthentication is called, the authentication context is finalized and IssueCredentials, AbortAuthentication, or SkipAuthentication should not be called again.

Applies to