你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ClientErrorBehaviors Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ClientErrorBehaviors controls the behavior of a service method when an unexpected response status code is received.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum ClientErrorBehaviors
[<System.Flags>]
type ClientErrorBehaviors =
Public Enum ClientErrorBehaviors
- Inheritance
-
ClientErrorBehaviors
- Attributes
Fields
Name | Value | Description |
---|---|---|
Default | 0 | The client will throw an exception from a service method if the service returns an error response. |
NoThrow | 1 | The client will not throw an exception from a service method if the service returns an error response. Callers of the service method must check the Response.IsError property before accessing the response content. |