你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeBatchModelFactory.BatchError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BatchError.
public static Azure.Compute.Batch.BatchError BatchError(string code = default, Azure.Compute.Batch.BatchErrorMessage message = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.BatchErrorDetail> values = default);
static member BatchError : string * Azure.Compute.Batch.BatchErrorMessage * seq<Azure.Compute.Batch.BatchErrorDetail> -> Azure.Compute.Batch.BatchError
Public Shared Function BatchError (Optional code As String = Nothing, Optional message As BatchErrorMessage = Nothing, Optional values As IEnumerable(Of BatchErrorDetail) = Nothing) As BatchError
Parameters
- code
- String
An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
- message
- BatchErrorMessage
A message describing the error, intended to be suitable for display in a user interface.
- values
- IEnumerable<BatchErrorDetail>
A collection of key-value pairs containing additional details about the error.
Returns
A new BatchError instance for mocking.