Export (0) Print
Expand All

DataServiceConfiguration.UseVerboseErrors Property

Gets or sets whether verbose errors should be returned by the data service.

Namespace:  System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)

public bool UseVerboseErrors { get; set; }

Property Value

Type: System.Boolean
Whether verbose errors are returned.



The UseVerboseErrors property sets the default verbose error behavior for the whole service. Individual responses can behave differently depending on the value of the UseVerboseErrors property of the arguments to the HandleException method on the DataService<T> class.

For security reasons, verbose errors should only be enabled during development, not in production environments,

.NET Framework

Supported in: 4.6, 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft