共用方式為


CosmosException(String, Int32) Constructor

Definition

Create a CosmosException

public CosmosException (string message, int statusCode);
new Azure.Cosmos.CosmosException : string * int -> Azure.Cosmos.CosmosException
Public Sub New (message As String, statusCode As Integer)

Parameters

message
String

The message associated with the exception.

statusCode
Int32

The status code associated with the exception.

Applies to