ArmCosmosDBModelFactory.CosmosDBErrorResult(String, String) 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 CosmosDBErrorResult.
public static Azure.ResourceManager.CosmosDB.Models.CosmosDBErrorResult CosmosDBErrorResult (string code = default, string message = default);
static member CosmosDBErrorResult : string * string -> Azure.ResourceManager.CosmosDB.Models.CosmosDBErrorResult
Public Shared Function CosmosDBErrorResult (Optional code As String = Nothing, Optional message As String = Nothing) As CosmosDBErrorResult
Parameters
- code
- String
Error code.
- message
- String
Error message indicating why the operation failed.
Returns
A new CosmosDBErrorResult instance for mocking.