QueryExtensions.GetDataByKeyFromResultsSet<T> 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.
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