Jaa


CrmServiceClient.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:
generic <typename T>
 T GetDataByKeyFromResultsSet(System::Collections::Generic::Dictionary<System::String ^, System::Object ^> ^ results, System::String ^ key);
public T GetDataByKeyFromResultsSet<T> (System.Collections.Generic.Dictionary<string,object> results, string key);
member this.GetDataByKeyFromResultsSet : System.Collections.Generic.Dictionary<string, obj> * string -> 'T
Public Function GetDataByKeyFromResultsSet(Of T) (results As Dictionary(Of String, Object), key As String) As T

Type Parameters

T

Type if object to return

Parameters

results
Dictionary<String,Object>

Results from the query

key
String

key name you want

Returns

T

object

Applies to