Share via


DataServiceContext.IgnoreResourceNotFoundException Property

Definition

Gets or sets whether an exception is raised when a 404 error (resource not found) is returned by the data service.

public virtual bool IgnoreResourceNotFoundException { get; set; }
member this.IgnoreResourceNotFoundException : bool with get, set
Public Overridable Property IgnoreResourceNotFoundException As Boolean

Property Value

When set to true, the client library returns an empty set instead of raising a DataServiceQueryException when the data service returns an HTTP 404: Resource Not Found error.

Applies to