Uredi

Deli z drugimi prek


DataServiceQuery<TElement>.Execute Method

Definition

Executes the query and returns the results as a collection that implements IEnumerable.

public:
 System::Collections::Generic::IEnumerable<TElement> ^ Execute();
public System.Collections.Generic.IEnumerable<TElement> Execute ();
override this.Execute : unit -> seq<'Element>
Public Function Execute () As IEnumerable(Of TElement)

Returns

IEnumerable<TElement>

An IEnumerable<T> in which T represents the type of the query results.

Exceptions

When the data service returns an HTTP 404: Resource Not Found error.

Remarks

When iterating over the returned collection, if an object is encountered in the input stream that cannot be deserialized to an instance of T then a NotSupportedException is thrown.

Applies to