你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeBatchModelFactory.BatchNodeError 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 BatchNodeError.
public static Azure.Compute.Batch.BatchNodeError BatchNodeError (string code = default, string message = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.NameValuePair> errorDetails = default);
static member BatchNodeError : string * string * seq<Azure.Compute.Batch.NameValuePair> -> Azure.Compute.Batch.BatchNodeError
Public Shared Function BatchNodeError (Optional code As String = Nothing, Optional message As String = Nothing, Optional errorDetails As IEnumerable(Of NameValuePair) = Nothing) As BatchNodeError
Parameters
- code
- String
An identifier for the Compute Node error. Codes are invariant and are intended to be consumed programmatically.
- message
- String
A message describing the Compute Node error, intended to be suitable for display in a user interface.
- errorDetails
- IEnumerable<NameValuePair>
The list of additional error details related to the Compute Node error.
Returns
A new BatchNodeError instance for mocking.