Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IncludeErrorDetailPolicy Enumeration

Specifies whether error details, such as exception messages and stack traces, should be included in error messages.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

public enum IncludeErrorDetailPolicy

Member nameDescription
DefaultUse the default behavior for the host environment. For ASP.NET hosting, use the value from the customErrors element in the Web.config file. For self-hosting, use the value LocalOnly.
LocalOnlyOnly include error details when responding to a local request.

AlwaysAlways include error details.

NeverNever include error details.

© 2015 Microsoft