CrmServiceClient.GetDataByKeyFromResultsSet<T> Method (Dictionary<String, Object>, String)
Applies To: Dynamics CRM 2015
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:
generic<typename T>
T GetDataByKeyFromResultsSet(
Dictionary<String^, Object^>^ results,
String^ key
)
member GetDataByKeyFromResultsSet<'T> :
results:Dictionary<string, Object> *
key:string -> 'T
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
© 2016 Microsoft. All rights reserved. Copyright