PhoneDataSharingContext.ExecuteRequest<(Of <(T>)>) Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Performs a search for objects in a data context.
Namespace: Microsoft.Phone.UserData
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Protected Function ExecuteRequest(Of T) ( _
query As String _
) As IEnumerable(Of T)
protected IEnumerable<T> ExecuteRequest<T>(
string query
)
Type Parameters
- T
The type of object requested.
Parameters
- query
Type: System..::.String
The search to perform.
Return Value
Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
The results of the search if possible; otherwise, nullNothingnullptra null reference (Nothing in Visual Basic).
Remarks
The ExecuteRequest<(Of <(T>)>) method is used to search for Contact objects by the SearchAsync method, and for Appointment objects by the SearchAsync method.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1
Platforms
Windows Phone