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

CosmosOperationCanceledException 构造函数

定义

重载

CosmosOperationCanceledException(OperationCanceledException, CosmosDiagnostics)

创建 CosmosOperationCanceledException 的实例

CosmosOperationCanceledException(SerializationInfo, StreamingContext)

初始化 CosmosOperationCanceledException 类的新实例。

CosmosOperationCanceledException(OperationCanceledException, CosmosDiagnostics)

Source:
CosmosOperationCanceledException.cs

创建 CosmosOperationCanceledException 的实例

public CosmosOperationCanceledException (OperationCanceledException originalException, Microsoft.Azure.Cosmos.CosmosDiagnostics diagnostics);
new Microsoft.Azure.Cosmos.CosmosOperationCanceledException : OperationCanceledException * Microsoft.Azure.Cosmos.CosmosDiagnostics -> Microsoft.Azure.Cosmos.CosmosOperationCanceledException
Public Sub New (originalException As OperationCanceledException, diagnostics As CosmosDiagnostics)

参数

originalException
OperationCanceledException

原始操作已取消异常

diagnostics
CosmosDiagnostics

适用于

CosmosOperationCanceledException(SerializationInfo, StreamingContext)

Source:
CosmosOperationCanceledException.cs

初始化 CosmosOperationCanceledException 类的新实例。

protected CosmosOperationCanceledException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Cosmos.CosmosOperationCanceledException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Cosmos.CosmosOperationCanceledException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

SerializationInfo 对象,用于保存所引发异常的序列化对象数据。

context
StreamingContext

StreamingContext 包含有关源或目标的上下文信息。

适用于