共用方式為


WebProviderError 類別

定義

表示來自 Web 帳戶提供者的錯誤。

public ref class WebProviderError sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Authentication.Web.Core.IWebProviderErrorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WebProviderError final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Authentication.Web.Core.IWebProviderErrorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class WebProviderError final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Authentication.Web.Core.IWebProviderErrorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WebProviderError
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Authentication.Web.Core.IWebProviderErrorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class WebProviderError
function WebProviderError(errorCode, errorMessage)
Public NotInheritable Class WebProviderError
繼承
Object Platform::Object IInspectable WebProviderError
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

如果您收到此錯誤,這表示 Windows 與提供者連絡,但提供者傳回錯誤。 錯誤專屬於個別提供者。 如需錯誤的相關資訊,請參閱提供者的檔。

建構函式

WebProviderError(UInt32, String)

初始化 WebProviderError 類別的新實例。

屬性

ErrorCode

取得錯誤碼。

ErrorMessage

取得錯誤訊息。

Properties

取得錯誤屬性。

適用於

另請參閱