DataServiceConfiguration.UseVerboseErrors Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Property UseVerboseErrors As Boolean

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(Of T) class.

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

.NET Framework
Available since 3.5
Return to top
Show: