Share via


DataServiceContext.IgnoreResourceNotFoundException Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
Public Property IgnoreResourceNotFoundException As Boolean
public bool IgnoreResourceNotFoundException { get; set; }

Property Value

Type: System.Boolean
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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.