Method GetMetadataValue
GetMetadataValue<T>(string, T)
Returns the metadata value for key, cast to T.
Returns defaultValue if the key is not found or the conversion fails.
public static T GetMetadataValue<T>(string key, T defaultValue = default)
Parameters
keystringdefaultValueT
Returns
- T
Type Parameters
T