Compartilhar via


ArmCosmosDBModelFactory.CosmosDBErrorResult(String, String) Method

Definition

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.

Applies to