DataServiceContext.IgnoreResourceNotFoundException Property

 

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)

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.

.NET Framework
Available since 3.5
Silverlight
Available since 4.0
Return to top
Show: