Share via


QueryExtensions.GetDataByKeyFromResultsSet<T> Method

Definition

This function gets data from a Dictionary object, where "string" identifies the field name, and Object contains the data, this method then attempts to cast the result to the Type requested, if it cannot be cast an empty object is returned.

public static T GetDataByKeyFromResultsSet<T> (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, System.Collections.Generic.Dictionary<string,object> results, string key);
static member GetDataByKeyFromResultsSet : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * System.Collections.Generic.Dictionary<string, obj> * string -> 'T
<Extension()>
Public Function GetDataByKeyFromResultsSet(Of T) (serviceClient As ServiceClient, results As Dictionary(Of String, Object), key As String) As T

Type Parameters

T

Type if object to return

Parameters

serviceClient
ServiceClient

ServiceClient

results
Dictionary<String,Object>

Results from the query

key
String

key name you want

Returns

T

object

Applies to