CrmServiceClient.GetDataByKeyFromResultsSet<T> Method (Dictionary<String, Object>, String)

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

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.

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

public T GetDataByKeyFromResultsSet<T>(
	Dictionary<string, object> results,
	string key
)

Parameters

results
Type: System.Collections.Generic.Dictionary<String, Object>

Results from the query

key
Type: System.String

key name you want

Return Value

Type: T

object

Type Parameters

T

Type if object to return

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: