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.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про