Udostępnij za pośrednictwem


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:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Property IgnoreResourceNotFoundException As Boolean 
    Get 
    Set
'Usage
Dim instance As DataServiceContext 
Dim value As Boolean 

value = instance.IgnoreResourceNotFoundException

instance.IgnoreResourceNotFoundException = value
public bool IgnoreResourceNotFoundException { get; set; }
public:
property bool IgnoreResourceNotFoundException {
    bool get ();
    void set (bool value);
}
member IgnoreResourceNotFoundException : bool with get, set
function get IgnoreResourceNotFoundException () : boolean 
function set IgnoreResourceNotFoundException (value : boolean)

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.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace