DataServiceConfiguration.UseVerboseErrors Property

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

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

Syntax

'Declaration
Public Property UseVerboseErrors As Boolean 
    Get 
    Set
'Usage
Dim instance As DataServiceConfiguration 
Dim value As Boolean 

value = instance.UseVerboseErrors

instance.UseVerboseErrors = value
public bool UseVerboseErrors { get; set; }
public:
virtual property bool UseVerboseErrors {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract UseVerboseErrors : bool with get, set 
override UseVerboseErrors : bool with get, set
final function get UseVerboseErrors () : boolean 
final function set UseVerboseErrors (value : boolean)

Property Value

Type: System.Boolean
True if the verbose errors should be returned by the data service; otherwise, false.

Implements

IDataServiceConfiguration.UseVerboseErrors

Remarks

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,

See Also

Reference

DataServiceConfiguration Class

System.Data.Services Namespace

Other Resources

Configuring the Data Service (WCF Data Services)