Redigera

Dela via


DataServiceConfiguration.UseVerboseErrors Property

Definition

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

public:
 property bool UseVerboseErrors { bool get(); void set(bool value); };
public bool UseVerboseErrors { get; set; }
member this.UseVerboseErrors : bool with get, set
Public Property UseVerboseErrors As Boolean

Property Value

Whether verbose errors are returned.

Implements

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,

Applies to

See also