共用方式為


IsolatedWindowsEnvironmentUserInfo.TryWaitForSignInAsync 方法

定義

已取代。 一旦隔離的 Windows 環境登入程式完成,這個異步等候函式就會傳回。 如果登入成功,則會傳回 ,false否則會傳回 true

public:
 virtual IAsyncOperation<bool> ^ TryWaitForSignInAsync() = TryWaitForSignInAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryWaitForSignInAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentUserInfo is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
IAsyncOperation<bool> TryWaitForSignInAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryWaitForSignInAsync();
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentUserInfo is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
public IAsyncOperation<bool> TryWaitForSignInAsync();
function tryWaitForSignInAsync()
Public Function TryWaitForSignInAsync () As IAsyncOperation(Of Boolean)

傳回

IAsyncOperation<bool> 表示登入作業成功。

屬性

備註

警告

這是已被取代的 API。

如果在呼叫 時 TryWaitForSignInAsync 完成登入,API 會立即傳 true 回。

適用於