Language
Edit

DataConsumerThemableBase<T>.GetObjectByThemeLookupKey Method

Definition

Get a value within a binding profile using this keyValue string.

protected virtual T GetObjectByThemeLookupKey(MixedReality.Toolkit.Data.DataConsumerThemableBase.BindingInfo binding, string keyValue);
abstract member GetObjectByThemeLookupKey : MixedReality.Toolkit.Data.DataConsumerThemableBase.BindingInfo * string -> 'T
override this.GetObjectByThemeLookupKey : MixedReality.Toolkit.Data.DataConsumerThemableBase.BindingInfo * string -> 'T
Protected Overridable Function GetObjectByThemeLookupKey (binding As DataConsumerThemableBase.BindingInfo, keyValue As String) As T

Parameters

binding
DataConsumerThemableBase.BindingInfo

The binding to use when resolve the request object at index keyValue.

keyValue
String

The key for looking up an object of type T.

Returns

T

Found object of type T or null if not found

Remarks

Override this method to support data sources that provide string key values that can be then used as a dictionary lookup of the appropriate theme relative or absolute keypath. If not already present in the returned value, the keypath will be appended to the base keypath provided in the DataConsumerThemeHelper.

Applies to