你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TaskFailureInformation 构造函数

定义

重载

TaskFailureInformation()

初始化 TaskFailureInformation 类的新实例。

TaskFailureInformation(ErrorCategory, String, String, IList<NameValuePair>)

初始化 TaskFailureInformation 类的新实例。

TaskFailureInformation()

Source:
TaskFailureInformation.cs

初始化 TaskFailureInformation 类的新实例。

public TaskFailureInformation ();
Public Sub New ()

适用于

TaskFailureInformation(ErrorCategory, String, String, IList<NameValuePair>)

Source:
TaskFailureInformation.cs

初始化 TaskFailureInformation 类的新实例。

public TaskFailureInformation (Microsoft.Azure.Batch.Protocol.Models.ErrorCategory category, string code = default, string message = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.NameValuePair> details = default);
new Microsoft.Azure.Batch.Protocol.Models.TaskFailureInformation : Microsoft.Azure.Batch.Protocol.Models.ErrorCategory * string * string * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.NameValuePair> -> Microsoft.Azure.Batch.Protocol.Models.TaskFailureInformation
Public Sub New (category As ErrorCategory, Optional code As String = Nothing, Optional message As String = Nothing, Optional details As IList(Of NameValuePair) = Nothing)

参数

category
ErrorCategory

任务错误的类别。

code
String

任务错误的标识符。 代码是固定的,旨在以编程方式使用。

message
String

描述任务错误的消息,该错误适用于在用户界面中显示。

details
IList<NameValuePair>

与错误相关的其他详细信息的列表。

适用于