Method QuerySharedTemplatesAsync
QuerySharedTemplatesAsync(SharedTemplateQueryParameters?, CancellationToken)
Queries the database for shared templates.
Declaration
Task<IReadOnlyDictionary<long, IReadOnlyList<SharedTemplate>>> QuerySharedTemplatesAsync(SharedTemplateQueryParameters? queryParameters = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| SharedTemplateQueryParameters | queryParameters | The parameters used to query. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyDictionary<long, IReadOnlyList<SharedTemplate>>> | A dictionary where the keys are ServiceLayerId and the values consist of a collection of SharedTemplate objects. |
Remarks
Returns a SharedTemplate collection that matches the SharedTemplateQueryParameters for every ServiceLayerId.
Query parameters are optional. When no query parameters are provided and Database is supported, all visible SharedTemplate for each table in the database are returned. Otherwise, a collection of SharedTemplate with FeatureTemplateDefinition based on the FeatureTemplate is returned.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |