We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Home > @microsoft/sp-component-base > DynamicProperty > tryGetValue
Returns the value of the object.
Signature:
tryGetValue(): TValue | undefined;
Returns:
TValue | undefined
the value associated with the dynamic property or undefined if the source or the data doesn't exist.
If the value is an array, then the first element of the array is returned; otherwise, the value itself is returned.
NOTE: This api will never return an array. To retrieve an array value, use the DynamicProperty.tryGetValues() API.
Home