你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosException(String, Int32) 构造函数

定义

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

参数

message
String

与异常相关的消息。

statusCode
Int32

与异常关联的状态代码。

适用于