IsolatedWindowsEnvironmentUserInfo.TryWaitForSignInAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
已取代。 一旦隔離的 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
回。