Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp component base.dynamicdataprovider.trygetsource

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-component-base > DynamicDataProvider > tryGetSource

DynamicDataProvider.tryGetSource() method

Returns a Dynamic Data Source, by its id. If the source is not present, it returns undefined.

Signature:

tryGetSource(id: string): IDynamicDataSource | undefined;

Parameters

Parameter Type Description
id string Id of the Dynamic Data Source.

Returns:

IDynamicDataSource | undefined

Clone this wiki locally