DataServiceQuery<TElement>.Execute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.