Språk

DataServiceContext.IgnoreResourceNotFoundException Egenskap

Definition

Hämtar eller anger om ett undantag utlöses när ett 404-fel (resursen hittades inte) returneras av datatjänsten.

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

Egenskapsvärde

När det är inställt truepå returnerar klientbiblioteket en tom uppsättning i stället för att generera en DataServiceQueryException när datatjänsten returnerar ett HTTP 404: Resursen hittades inte.

Gäller för