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

SynchronousMethodExceptionBehavior Class

Definition

A BatchClientBehavior which specifies how exceptions should be thrown from synchronous methods.

public class SynchronousMethodExceptionBehavior : Microsoft.Azure.Batch.BatchClientBehavior
type SynchronousMethodExceptionBehavior = class
    inherit BatchClientBehavior
Public Class SynchronousMethodExceptionBehavior
Inherits BatchClientBehavior
Inheritance
SynchronousMethodExceptionBehavior

Remarks

By default, synchronous methods throw the same exceptions as asynchronous ones. For compatability with versions of the Azure.Batch client prior to 4.0, you can specify the ThrowAggregateException behavior to wrap exceptions thrown from synchronous methods in an AggregateException.

Fields

ThrowAggregateException

This behavior causes synchronous methods to throw AggregateException on failure.

Applies to