ExecuteRequest(T) Method
Collapse the table of content
Expand the table of content

PhoneDataSharingContext.ExecuteRequest<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)

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<T>
The results of the search if possible; otherwise, null.

The ExecuteRequest<T> method is used to search for Contact objects by the SearchAsync method, and for Appointment objects by the SearchAsync method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft