共用方式為


HotspotAuthenticationContext.AbortAuthentication(Boolean) 方法

定義

中止目前的驗證嘗試,並將 WLAN 介面與熱點中斷連線。

注意

這項功能僅適用于行動電信業者應用程式,以及行動網路操作員提供特殊許可權存取的 UWP 應用程式。

如果您想要使用此 API 並將您的應用程式發佈至 Microsoft Store,則需要特殊核准。 如需詳細資訊,請參閱應用程式功能宣告主題中的受限制功能一節。

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)

參數

markAsManual
Boolean

bool

如果 為 true,Windows 會停用對應 WLAN 設定檔的自動連線屬性,並避免未來自動連線到此熱點。 否則為 false

Windows 需求

應用程式功能
cellularDeviceControl cellularDeviceIdentity

備註

當無法透過 IssueCredentials提供驗證認證時,應該呼叫中止驗證。 呼叫 AbortAuthentication 之後,驗證內容就會完成,而且不應再次呼叫 IssueCredentialsAbortAuthentication 或 SkipAuthentication

適用於