你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmComputeFleetModelFactory.ComputeFleetApiError 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 ComputeFleetApiError.
public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiError ComputeFleetApiError(string code = default, string target = default, string message = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiErrorInfo> details = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetInnerError innererror = default);
static member ComputeFleetApiError : string * string * string * seq<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiErrorInfo> * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetInnerError -> Azure.ResourceManager.ComputeFleet.Models.ComputeFleetApiError
Public Shared Function ComputeFleetApiError (Optional code As String = Nothing, Optional target As String = Nothing, Optional message As String = Nothing, Optional details As IEnumerable(Of ComputeFleetApiErrorInfo) = Nothing, Optional innererror As ComputeFleetInnerError = Nothing) As ComputeFleetApiError
Parameters
- code
- String
The error code.
- target
- String
The target of the particular error.
- message
- String
The error message.
- details
- IEnumerable<ComputeFleetApiErrorInfo>
The API error details.
- innererror
- ComputeFleetInnerError
The API inner error.
Returns
A new ComputeFleetApiError instance for mocking.