Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Executes the query and returns the results as a collection that implements IEnumerable.
Not supported by the WCF Data Services 5.0 client for Silverlight.
Namespace: System.Data.Services.Client
Assembly: Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
Syntax
'Declaration
Public Function Execute As IEnumerable(Of TElement)
'Usage
Dim instance As DataServiceQuery
Dim returnValue As IEnumerable(Of TElement)
returnValue = instance.Execute()
public IEnumerable<TElement> Execute()
public:
IEnumerable<TElement>^ Execute()
member Execute : unit -> IEnumerable<'TElement>
public function Execute() : IEnumerable<TElement>
Return Value
Type: System.Collections.Generic.IEnumerable<TElement>
An IEnumerable<T> in which T represents the type of the query results.
Exceptions
| Exception | Condition |
|---|---|
| DataServiceQueryException | When the data service returns an HTTP 404: Resource Not Found error. |
| NotSupportedException | When during materialization an object is encountered in the input stream that cannot be deserialized to an instance of T. |
See Also
Reference
DataServiceQuery<TElement> Class
System.Data.Services.Client Namespace