CrmServiceClient.GetDataByKeyFromResultsSet<T> Method (Dictionary<String, Object>, String)
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)
Syntax
public T GetDataByKeyFromResultsSet<T>(
Dictionary<string, object> results,
string key
)
Public Function GetDataByKeyFromResultsSet(Of T) (
results As Dictionary(Of String, Object),
key As String
) As T
Parameters
results
Type: System.Collections.Generic.Dictionary<String, Object>Results from the query
key
Type: System.Stringkey name you want
Return Value
Type: T
object
Type Parameters
- T
Type if object to return
See Also
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright